Files
tehran_taj/nginx-spa.conf
T

19 lines
365 B
Plaintext
Raw Normal View History

2026-09-09 19:39:13 +03:30
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
# Optional: Cache static assets
location ~* \.(?:ico|css|js|gif|jpe?g|png|woff2?|eot|ttf|svg)$ {
expires 6M;
access_log off;
add_header Cache-Control "public";
}
}