mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-24 00:43:09 +02:00
parent
434bced6f4
commit
35cf9f5d04
1 changed files with 1 additions and 0 deletions
|
@ -17,6 +17,7 @@ import config from './conf';
|
||||||
*/
|
*/
|
||||||
const app = express();
|
const app = express();
|
||||||
app.disable('x-powered-by');
|
app.disable('x-powered-by');
|
||||||
|
app.set('trust proxy', 'loopback');
|
||||||
|
|
||||||
// Log
|
// Log
|
||||||
app.use(morgan(process.env.NODE_ENV == 'production' ? 'combined' : 'dev', {
|
app.use(morgan(process.env.NODE_ENV == 'production' ? 'combined' : 'dev', {
|
||||||
|
|
Loading…
Reference in a new issue