Update nginx.conf
the last one i hope
This commit is contained in:
11
nginx.conf
11
nginx.conf
@@ -15,7 +15,6 @@ http {
|
|||||||
|
|
||||||
# Additional MIME types
|
# Additional MIME types
|
||||||
types {
|
types {
|
||||||
font/woff2 woff2;
|
|
||||||
application/javascript mjs;
|
application/javascript mjs;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -35,14 +34,6 @@ http {
|
|||||||
server nextcloud:9000;
|
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 {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
listen [::]:80 default_server;
|
listen [::]:80 default_server;
|
||||||
@@ -147,7 +138,7 @@ http {
|
|||||||
# Serve static files
|
# Serve static files
|
||||||
location ~ \.(?:css|js|mjs|svg|gif|png|jpg|ico|wasm|tflite|map)$ {
|
location ~ \.(?:css|js|mjs|svg|gif|png|jpg|ico|wasm|tflite|map)$ {
|
||||||
try_files $uri /index.php$request_uri;
|
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
|
access_log off; # Optional: Don't log access to assets
|
||||||
|
|
||||||
location ~ \.wasm$ {
|
location ~ \.wasm$ {
|
||||||
|
|||||||
Reference in New Issue
Block a user