mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-09 19:53:08 +02:00
* disable brotli * disable compress between nginx and app
This commit is contained in:
parent
0ed94ee52e
commit
d1be8b43f6
2 changed files with 4 additions and 2 deletions
|
@ -53,6 +53,7 @@ server {
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto https;
|
proxy_set_header X-Forwarded-Proto https;
|
||||||
|
proxy_set_header Accept-Encoding "";
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ import * as zlib from 'zlib';
|
||||||
import * as Koa from 'koa';
|
import * as Koa from 'koa';
|
||||||
import * as Router from '@koa/router';
|
import * as Router from '@koa/router';
|
||||||
import * as mount from 'koa-mount';
|
import * as mount from 'koa-mount';
|
||||||
import * as compress from 'koa-compress';
|
const compress = require('koa-compress');
|
||||||
import * as koaLogger from 'koa-logger';
|
import * as koaLogger from 'koa-logger';
|
||||||
import * as requestStats from 'request-stats';
|
import * as requestStats from 'request-stats';
|
||||||
import * as slow from 'koa-slow';
|
import * as slow from 'koa-slow';
|
||||||
|
@ -50,7 +50,8 @@ if (!['production', 'test'].includes(process.env.NODE_ENV || '')) {
|
||||||
|
|
||||||
// Compress response
|
// Compress response
|
||||||
app.use(compress({
|
app.use(compress({
|
||||||
flush: zlib.constants.Z_SYNC_FLUSH
|
flush: zlib.constants.Z_SYNC_FLUSH,
|
||||||
|
br: false
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// HSTS
|
// HSTS
|
||||||
|
|
Loading…
Reference in a new issue