feat(nginx): update custom nginx conf
This commit is contained in:
parent
ff2c028c4e
commit
92c174491c
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user