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