chore(root): add nginx configuration

This commit is contained in:
hosseintaromi 2025-06-14 14:25:09 +03:30
parent a2e3ed0cd4
commit 876e0d1394
1 changed files with 20 additions and 0 deletions

20
nginx.conf Normal file
View File

@ -0,0 +1,20 @@
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location /assets {
expires 1y;
add_header Cache-Control "public, no-transform";
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}