forked from PolarisPyra/artemisapi
I'm going insane
This commit is contained in:
parent
f53d4f780c
commit
42693bb454
5
app.js
5
app.js
|
@ -5,7 +5,6 @@ const expressSession = require("express-session");
|
|||
const MySQLStore = require("express-mysql-session")(expressSession);
|
||||
|
||||
const app = express();
|
||||
|
||||
const nodeEnv = process.env.NODE_ENV;
|
||||
|
||||
if (!nodeEnv) {
|
||||
|
@ -13,6 +12,10 @@ if (!nodeEnv) {
|
|||
process.exit(1);
|
||||
}
|
||||
|
||||
// Let NGINX do its magic.
|
||||
app.set("trust proxy", "loopback");
|
||||
app.set("query parser", "simple");
|
||||
|
||||
const store = new MySQLStore({
|
||||
host: process.env.host,
|
||||
user: process.env.user,
|
||||
|
|
Loading…
Reference in New Issue