Skip to content

Commit

Permalink
feat: passing domain to session middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
albanm committed Dec 14, 2018
1 parent 75dd182 commit 03e7e59
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/custom-environment-variables.js
Expand Up @@ -2,6 +2,7 @@ module.exports = {
mode: 'MODE',
publicUrl: 'PUBLIC_URL',
wsPublicUrl: 'WS_PUBLIC_URL',
sessionDomain: 'SESSION_DOMAIN',
directoryUrl: 'DIRECTORY_URL',
privateDirectoryUrl: 'PRIVATE_DIRECTORY_URL',
openapiViewerUrl: 'OPENAPI_VIEWER_URL',
Expand Down
1 change: 1 addition & 0 deletions config/default.js
Expand Up @@ -5,6 +5,7 @@ module.exports = {
publicUrl: 'http://localhost:8080',
wsPublicUrl: 'ws://localhost:8080',
dataDir: '/data',
sessionDomain: null,
directoryUrl: 'http://localhost:8080',
privateDirectoryUrl: '',
openapiViewerUrl: 'https://koumoul.com/openapi-viewer/',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -45,7 +45,7 @@
},
"dependencies": {
"@digibytes/markdownit": "^1.2.1",
"@koumoul/sd-express": "^0.12.0",
"@koumoul/sd-express": "^0.13.0",
"@koumoul/sd-vue": "^0.11.0",
"@koumoul/vue-multianalytics": "^1.10.1",
"@koumoul/vuetify-jsonschema-form": "^0.16.0",
Expand Down
3 changes: 2 additions & 1 deletion server/app.js
Expand Up @@ -22,7 +22,8 @@ const nuxt = require('./nuxt')
const session = require('@koumoul/sd-express')({
directoryUrl: config.directoryUrl,
privateDirectoryUrl: config.privateDirectoryUrl || config.directoryUrl,
publicUrl: config.publicUrl
publicUrl: config.publicUrl,
cookieDomain: config.sessionDomain
})

const app = express()
Expand Down

0 comments on commit 03e7e59

Please sign in to comment.