From dda20f13a64e549b26a6bf9b56901f6debf2c26b Mon Sep 17 00:00:00 2001 From: not-nullptr <62841684+not-nullptr@users.noreply.github.com> Date: Sun, 13 Apr 2025 13:50:56 +0100 Subject: [PATCH] Reapply "fix: that didnt fix the nav issues?" This reverts commit 77d75ef5a9a6385876a64d8d0d36d905ff85e270. --- nginx.conf | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/nginx.conf b/nginx.conf index c921fb8..d9cc10f 100644 --- a/nginx.conf +++ b/nginx.conf @@ -3,14 +3,23 @@ server { server_name vert; root /usr/share/nginx/html; + index index.html; client_max_body_size 10M; + location / { + try_files $uri $uri/ /index.html; + } + + location ~* \.(?:ico|css|js|gif|jpe?g|png|woff2?|eot|ttf|svg|otf|webp)$ { + expires 6M; + access_log off; + add_header Cache-Control "public"; + } + + error_page 404 /index.html; + add_header Cross-Origin-Embedder-Policy "require-corp"; add_header Cross-Origin-Opener-Policy "same-origin"; add_header Cross-Origin-Resource-Policy "cross-origin"; - - location / { - try_files $uri /index.html; - } } \ No newline at end of file