mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 02:01:33 +00:00
Update nginx config for docker
This commit is contained in:
+11
-10
@@ -5,22 +5,23 @@ server {
|
||||
charset utf-8;
|
||||
|
||||
gzip on;
|
||||
gzip_types text/plain text/xml text/css text/html application/x-javascript text/javascript application/javascript application/xml application/xml+rss application/atom+xml image/x-icon font/opentype application/json;
|
||||
gzip_types text/plain text/xml text/css application/x-javascript text/javascript application/javascript application/xml application/xml+rss application/atom+xml image/x-icon font/opentype application/json;
|
||||
gzip_min_length 256;
|
||||
gzip_vary on;
|
||||
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
|
||||
gzip_proxied any;
|
||||
gzip_comp_level 6;
|
||||
|
||||
# Only works on secured connections
|
||||
brotli on;
|
||||
brotli_comp_level 6;
|
||||
brotli_static on;
|
||||
brotli_types application/atom+xml application/javascript application/json application/rss+xml
|
||||
application/vnd.ms-fontobject application/x-font-opentype application/x-font-truetype
|
||||
application/x-font-ttf application/x-javascript application/xhtml+xml application/xml
|
||||
font/eot font/opentype font/otf font/truetype image/svg+xml image/vnd.microsoft.icon
|
||||
image/x-icon image/x-win-bitmap text/css text/javascript text/plain text/xml text/html;
|
||||
# Brotli compression (requires libnginx-mod-http-brotli-filter and libnginx-mod-http-brotli-static)
|
||||
# Uncomment these lines after installing the brotli module
|
||||
#brotli on;
|
||||
#brotli_comp_level 6;
|
||||
#brotli_static on;
|
||||
#brotli_types application/atom+xml application/javascript application/json application/rss+xml
|
||||
#application/vnd.ms-fontobject application/x-font-opentype application/x-font-truetype
|
||||
#application/x-font-ttf application/x-javascript application/xhtml+xml application/xml
|
||||
#font/eot font/opentype font/otf font/truetype image/svg+xml image/vnd.microsoft.icon
|
||||
#image/x-icon image/x-win-bitmap text/css text/javascript text/plain text/xml text/html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
*
|
||||
!.gitignore
|
||||
@@ -1,2 +0,0 @@
|
||||
*
|
||||
!.gitignore
|
||||
Reference in New Issue
Block a user