Files
playground-frontend/nginx.conf
Lobo 46e5cd1e01 Implemented following stuff
- Basic Material Design
- Default Component to see anything
- theme switching between light and dark
- language change between german and english
2025-11-06 12:11:13 +01:00

25 lines
606 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
# 1) index.html never cache
location = /index.html {
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate";
add_header Pragma "no-cache";
add_header Expires "0";
try_files $uri =404;
}
# 2) Activate aggressive canche for hashed assets
location ~* \.(?:js|css|woff2?|ttf|eot|svg|png|jpg|jpeg|gif|webp)$ {
add_header Cache-Control "public, max-age=31536000, immutable";
try_files $uri =404;
}
location / {
try_files $uri $uri/ /index.html;
}
}