Files
lub-web-monorepo/apps/frontend/nginx.conf
T
t.leonards ae33874ae0
Deploy to Dev Server / deploy (push) Has been cancelled
initial commit
2026-03-26 16:10:45 +01:00

24 lines
657 B
Nginx Configuration File

server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
# Angular SPA Routing - alle Routen auf index.html umleiten
location / {
try_files $uri $uri/ /index.html;
}
# Caching für statische Assets
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
expires 1y;
add_header Cache-Control "public, immutable";
try_files $uri =404;
}
# Gzip Kompression
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
gzip_min_length 1000;
}