We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22d3eb8 commit de67dc2Copy full SHA for de67dc2
index.js
@@ -34,11 +34,13 @@ const express = require('express')
34
35
const PORT = process.env.PORT || 5000
36
, HOST = process.env.HOST || 'localhost'
37
- , hostUrl = 'http://' + HOST + ':' + PORT
38
, max_session_min = 180
39
, csrfProtection = csrf({ cookie: true })
40
;
41
+let hostUrl = 'http://' + HOST + ':' + PORT
42
+if (dsConfig.appUrl != '' && dsConfig.appUrl != '{APP_URL}') {hostUrl = dsConfig.appUrl}
43
+
44
let app = express()
45
.use(helmet())
46
.use(express.static(path.join(__dirname, 'public')))
0 commit comments