feat(nginx): update custom nginx conf
This commit is contained in:
parent
ff2c028c4e
commit
92c174491c
@ -32,13 +32,12 @@ http {
|
|||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
port_in_redirect off;
|
||||||
|
|
||||||
location / {
|
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
}
|
rewrite ^([^.]*[^/])$ $1/ permanent;
|
||||||
|
try_files $uri $uri/ $uri/index.html =404;
|
||||||
try_files $uri $uri/ /index.html;
|
|
||||||
|
|
||||||
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
|
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
|
||||||
expires 30d;
|
expires 30d;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user