Browse Source
Feature/change default host (#1013)
* Change default host to 0.0.0.0
* Update changelog
pull/1014/head
Thomas Kaul
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
8 additions and
2 deletions
-
CHANGELOG.md
-
apps/api/src/main.ts
-
apps/api/src/services/configuration.service.ts
|
|
@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. |
|
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
|
|
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
|
|
|
|
|
|
|
## Unreleased |
|
|
|
|
|
|
|
### Changed |
|
|
|
|
|
|
|
- Changed the default `HOST` to `0.0.0.0` |
|
|
|
|
|
|
|
## 1.158.1 - 12.06.2022 |
|
|
|
|
|
|
|
### Added |
|
|
|
|
|
@ -20,7 +20,7 @@ async function bootstrap() { |
|
|
|
}) |
|
|
|
); |
|
|
|
|
|
|
|
const host = process.env.HOST || 'localhost'; |
|
|
|
const host = process.env.HOST || '0.0.0.0'; |
|
|
|
const port = process.env.PORT || 3333; |
|
|
|
await app.listen(port, host, () => { |
|
|
|
logLogo(); |
|
|
|
|
|
@ -31,7 +31,7 @@ export class ConfigurationService { |
|
|
|
GOOGLE_SHEETS_ACCOUNT: str({ default: '' }), |
|
|
|
GOOGLE_SHEETS_ID: str({ default: '' }), |
|
|
|
GOOGLE_SHEETS_PRIVATE_KEY: str({ default: '' }), |
|
|
|
HOST: host({ default: 'localhost' }), |
|
|
|
HOST: host({ default: '0.0.0.0' }), |
|
|
|
JWT_SECRET_KEY: str({}), |
|
|
|
MAX_ITEM_IN_CACHE: num({ default: 9999 }), |
|
|
|
MAX_ORDERS_TO_IMPORT: num({ default: Number.MAX_SAFE_INTEGER }), |
|
|
|