local env

This commit is contained in:
Dustin Decker 2023-01-26 15:54:22 -08:00
parent 10415d91f3
commit 12a54b764e
2 changed files with 3 additions and 3 deletions

2
api.js
View file

@ -35,7 +35,7 @@ var sessions_settings_object = {
activeDuration: 1000 * 60 * 5, // Extend for five minutes if actively used
cookie: {
httpOnly: true,
secureProxy: true
secureProxy: process.env.NODE_ENV == 'production'
}
}

View file

@ -8,7 +8,7 @@ services:
# the IP of the server running this service.
# SSL will automatically be set up and
# renewed with LetsEncrypt.
- HOSTNAME=your.host.name
- HOSTNAME=localhost
# THis hostname is where your JS is served out of
- XSS_HOSTNAME=your.xss.domain
# [REQUIRED] Email for SSL
@ -47,7 +47,7 @@ services:
- DATABASE_USER=xsshunterexpress
- DATABASE_PASSWORD=xsshunterexpress
- DATABASE_HOST=postgresdb
- NODE_ENV=production
- NODE_ENV=development
- USE_CLOUD_STORAGE=true
- BUCKET_NAME=YourBucket
ports: