Files
url-shortener/frontend/nginx.conf
T
2025-11-23 20:42:56 +01:00

19 lines
446 B
Nginx Configuration File

server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
location / {
try_files $uri $uri/ /index.html;
}
location ~* \.(?:css|js|jpg|svg|png|gif|ico)$ {
expires 1y;
add_header Cache-Control "public";
}
}