mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-24 07:06:07 +09:00
* disable brotli * disable compress between nginx and app
This commit is contained in:
parent
854387f562
commit
5225ad822c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user