salw/salw_client/nginx.conf

22 lines
448 B
Nginx Configuration File
Raw Permalink Normal View History

2024-11-28 15:11:59 +00:00
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location / {
# All requests are routed to index.html
try_files $uri /index.html;
}
# Optional: Cache static files to improve performance
location ~* \.(?:ico|css|js|gif|jpe?g|png|woff2?|eot|ttf|svg|otf|webp)$ {
expires 6M;
access_log off;
add_header Cache-Control "public";
}
}