Thank you tlalok Just what I was looking for.
Quick question:
Where do I find the Cookie_Secret and Session_Secret?
Or is that something I make up myself?
Create .env file in project root with this content :
ENV=production
COOKIES_SECRET=xxxxxxxxxxx
SESSION_SECRET=yyyyyyyyyyy
FLARUM_API_ENDPOINT=http://domain.tld/api/
Edit: Never-mind, I answered my own question:
PORT Port app optional 5000
FLARUM_API_ENDPOINT API URL required none
COOKIES_SECRET Set random cookies secret required none
SESSION_SECRET Set random session secret required none
REDIS_URL Redis instance ip/hostname required none
PIWIK_ID Piwik id optional none
PIWIK_URL Piwik url optional none
tlalok
Update2:
So I am getting this error. I must be doing something wrong with that session and cookie secret:
Erreur 500
secret option required for sessions
Error: secret option required for sessions
at session (/var/www/keysndaggers/chat/node_modules/express-session/index.js:199:12)
at Layer.handle [as handle_request] (/var/www/keysndaggers/chat/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/var/www/keysndaggers/chat/node_modules/express/lib/router/index.js:312:13)
at /var/www/keysndaggers/chat/node_modules/express/lib/router/index.js:280:7
at Function.process_params (/var/www/keysndaggers/chat/node_modules/express/lib/router/index.js:330:12)
at next (/var/www/keysndaggers/chat/node_modules/express/lib/router/index.js:271:10)
at cookieParser (/var/www/keysndaggers/chat/node_modules/cookie-parser/index.js:56:14)
at Layer.handle [as handle_request] (/var/www/keysndaggers/chat/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/var/www/keysndaggers/chat/node_modules/express/lib/router/index.js:312:13)
at /var/www/keysndaggers/chat/node_modules/express/lib/router/index.js:280:7
at Function.process_params (/var/www/keysndaggers/chat/node_modules/express/lib/router/index.js:330:12)
at next (/var/www/keysndaggers/chat/node_modules/express/lib/router/index.js:271:10)
at /var/www/keysndaggers/chat/node_modules/express-validator/lib/express_validator.js:351:5
at Layer.handle [as handle_request] (/var/www/keysndaggers/chat/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/var/www/keysndaggers/chat/node_modules/express/lib/router/index.js:312:13)
at /var/www/keysndaggers/chat/node_modules/express/lib/router/index.js:280:7