Update nginx.conf

the last one i hope
This commit is contained in:
2025-08-17 02:20:14 -07:00
parent a159c2ac3d
commit 37dc0f4926

View File

@@ -15,7 +15,6 @@ http {
# Additional MIME types
types {
font/woff2 woff2;
application/javascript mjs;
}
@@ -35,14 +34,6 @@ http {
server nextcloud:9000;
}
# HTTP to HTTPS redirect (optional, uncomment if needed)
# server {
# listen 80;
# listen [::]:80;
# server_name gabenszip.com;
# return 301 https://$server_name$request_uri;
# }
server {
listen 80 default_server;
listen [::]:80 default_server;
@@ -147,7 +138,7 @@ http {
# Serve static files
location ~ \.(?:css|js|mjs|svg|gif|png|jpg|ico|wasm|tflite|map)$ {
try_files $uri /index.php$request_uri;
add_header Cache-Control "public, max-age=15778463, $asset_immutable";
add_header Cache-Control "public, max-age=15778463";
access_log off; # Optional: Don't log access to assets
location ~ \.wasm$ {