mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 01:31:39 -05:00
Merge pull request #6 from sunstep/docs/Nginx-brotli
Switch gzip to Brotli Nginx
This commit is contained in:
commit
28dbb18d79
1 changed files with 28 additions and 11 deletions
|
|
@ -46,17 +46,34 @@ server {
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
server_name example.com;
|
server_name example.com;
|
||||||
|
|
||||||
gzip on;
|
brotli on;
|
||||||
gzip_disable "msie6";
|
brotli_comp_level 6;
|
||||||
|
brotli_types
|
||||||
gzip_vary on;
|
text/css
|
||||||
gzip_proxied any;
|
text/plain
|
||||||
gzip_comp_level 6;
|
text/xml
|
||||||
gzip_buffers 16 8k;
|
text/x-component
|
||||||
gzip_http_version 1.1;
|
text/javascript
|
||||||
gzip_min_length 256;
|
application/x-javascript
|
||||||
gzip_types
|
application/javascript
|
||||||
application/json;
|
application/json
|
||||||
|
application/manifest+json
|
||||||
|
application/vnd.api+json
|
||||||
|
application/xml
|
||||||
|
application/xhtml+xml
|
||||||
|
application/rss+xml
|
||||||
|
application/atom+xml
|
||||||
|
application/vnd.ms-fontobject
|
||||||
|
application/x-font-ttf
|
||||||
|
application/x-font-opentype
|
||||||
|
application/x-font-truetype
|
||||||
|
image/svg+xml
|
||||||
|
image/x-icon
|
||||||
|
image/vnd.microsoft.icon
|
||||||
|
font/ttf
|
||||||
|
font/eot
|
||||||
|
font/otf
|
||||||
|
font/opentype;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue