1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-01 08:18:14 +09:00

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

* disable brotli

* disable compress between nginx and app
This commit is contained in:
MeiMei 2020-05-09 08:18:21 +09:00 committed by GitHub
parent 0ed94ee52e
commit d1be8b43f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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