Update nginx config for docker

This commit is contained in:
DariusIII
2025-11-26 16:01:03 +01:00
parent 0ba01546fd
commit 3c5c180877
3 changed files with 11 additions and 14 deletions
+11 -10
View File
@@ -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;
-2
View File
@@ -1,2 +0,0 @@
*
!.gitignore
-2
View File
@@ -1,2 +0,0 @@
*
!.gitignore