diff --git a/.env.app.example b/.env.app.example index df16f2982d4..1db0797a967 100644 --- a/.env.app.example +++ b/.env.app.example @@ -1,5 +1,5 @@ -# The host address to bind to. Default is `0.0.0.0` -# HOST="0.0.0.0" +# The host address to bind to. Default is `::` +# HOST="::" # The port to listen to for incoming requests. Default is `8091` # PORT=8091 # The absolute path to the directory where all files will be stored. Default is `/store` diff --git a/config/app.ts b/config/app.ts index ffa2c228e89..f609cf74a46 100644 --- a/config/app.ts +++ b/config/app.ts @@ -21,4 +21,4 @@ export const defaultPsw: string = 'zwave' export const sessionSecret: string = process.env.SESSION_SECRET || 'DEFAULT_SESSION_SECRET_CHANGE_ME' export const base: string = process.env.BASE_PATH || '/' export const port: string | number = process.env.PORT || 8091 -export const host: string = process.env.HOST || '0.0.0.0' \ No newline at end of file +export const host: string = process.env.HOST || '::' \ No newline at end of file diff --git a/docs/guide/env-vars.md b/docs/guide/env-vars.md index f010aaf077a..25776b91f04 100644 --- a/docs/guide/env-vars.md +++ b/docs/guide/env-vars.md @@ -15,7 +15,7 @@ This is the list of the supported environment variables: - `SESSION_SECRET`: Used as secret for session. If not provided the default one is used - `USE_SECURE_COOKIE`: Set the cookie [secure](https://github.com/expressjs/session#cookiesecure) option. - `PORT`: The port to listen to for incoming requests. Default is `8091` -- `HOST`: The host address to bind to. Default is `0.0.0.0` +- `HOST`: The host address to bind to. Default is `::` - `STORE_DIR`: The absolute path to the directory where all files will be stored. Default is `/store` - `BACKUPS_DIR`: The absolute path to the directory where all backups files will be stored. Default is `/store/backups` - `ZWAVEJS_EXTERNAL_CONFIG`: Mostly needed for docker users, it's the path to the folder used by Z-Wave JS to [store config database](https://zwave-js.github.io/node-zwave-js/#/usage/external-config?id=specifying-an-external-config-db-location), by default on docker it is `/usr/src/app/store/.config-db`. For users that are using a custom `STORE_DIR` this must be changed too. diff --git a/src/views/Settings.vue b/src/views/Settings.vue index 4a8ae713008..ab470ccf37e 100644 --- a/src/views/Settings.vue +++ b/src/views/Settings.vue @@ -1233,7 +1233,7 @@