feat(nginx): update custom nginx conf

This commit is contained in:
Jewgeni Lewash 2024-03-02 20:58:32 +01:00
parent ff2c028c4e
commit 92c174491c

View File

@ -32,13 +32,12 @@ http {
listen 80;
listen [::]:80;
server_name localhost;
port_in_redirect off;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
try_files $uri $uri/ /index.html;
rewrite ^([^.]*[^/])$ $1/ permanent;
try_files $uri $uri/ $uri/index.html =404;
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
expires 30d;