mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
Added fixes for prod
This commit is contained in:
@@ -21,7 +21,7 @@ if (app.get('env') !== 'test') {
|
||||
// APP MIDDLEWARE
|
||||
//==============================================================================
|
||||
|
||||
app.set('trust proxy', 'loopback');
|
||||
app.set('trust proxy', 1);
|
||||
app.use(helmet());
|
||||
app.use(bodyParser.json());
|
||||
app.use('/client', express.static(path.join(__dirname, 'dist')));
|
||||
|
||||
Reference in New Issue
Block a user