Skip to content

Commit 12d4284

Browse files
author
Artem
committed
listen for all network interfaces by default. 127.0.0.1 for electron
1 parent a7dc684 commit 12d4284

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

configs/webpack.config.main.prod.babel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export default merge(baseConfig, {
6666
SERVER_TLS_KEY: process.env.SERVER_TLS_KEY || '',
6767
APP_FOLDER_NAME: process.env.APP_FOLDER_NAME || '',
6868
UPGRADES_LINK: process.env.UPGRADES_LINK || '',
69+
RI_HOSTNAME: '127.0.0.1',
6970
BUILD_TYPE: 'ELECTRON',
7071
APP_VERSION: version,
7172
AWS_BUCKET_NAME: 'AWS_BUCKET_NAME' in process.env ? process.env.AWS_BUCKET_NAME : '',

configs/webpack.config.main.stage.babel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export default merge(mainProdConfig, {
2626
SERVER_TLS_KEY: process.env.SERVER_TLS_KEY || '',
2727
APP_FOLDER_NAME: process.env.APP_FOLDER_NAME || '',
2828
UPGRADES_LINK: process.env.UPGRADES_LINK || '',
29+
RI_HOSTNAME: '127.0.0.1',
2930
BUILD_TYPE: 'ELECTRON',
3031
APP_VERSION: version,
3132
AWS_BUCKET_NAME: 'AWS_BUCKET_NAME' in process.env ? process.env.AWS_BUCKET_NAME : '',

redisinsight/api/config/default.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default {
3939
},
4040
server: {
4141
env: 'development',
42-
listenInterface: process.env.RI_LISTEN_INTERFACE === '*' ? '' : (process.env.RI_LISTEN_INTERFACE || '127.0.0.1'),
42+
listenInterface: process.env.RI_HOSTNAME ?? '0.0.0.0',
4343
port: 5000,
4444
docPrefix: 'api/docs',
4545
globalPrefix: 'api',

0 commit comments

Comments
 (0)