Skip to content
Snippets Groups Projects
Unverified Commit d1be8b43 authored by MeiMei's avatar MeiMei Committed by GitHub
Browse files

brotli圧縮の無効化など Resolve #6325 (#6326)

* disable brotli

* disable compress between nginx and app
parent 0ed94ee5
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,7 @@ server {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Accept-Encoding "";
proxy_http_version 1.1;
proxy_redirect off;
......
......@@ -10,7 +10,7 @@ import * as zlib from 'zlib';
import * as Koa from 'koa';
import * as Router from '@koa/router';
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 requestStats from 'request-stats';
import * as slow from 'koa-slow';
......@@ -50,7 +50,8 @@ if (!['production', 'test'].includes(process.env.NODE_ENV || '')) {
// Compress response
app.use(compress({
flush: zlib.constants.Z_SYNC_FLUSH
flush: zlib.constants.Z_SYNC_FLUSH,
br: false
}));
// HSTS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment