Nginx Proxy angepasst
All checks were successful
Angular Build & Deploy / deploy (push) Successful in 45s

This commit is contained in:
2025-12-30 15:17:56 +01:00
parent a98d4d31a2
commit 10c9f7cbec

View File

@@ -1,16 +1,15 @@
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location / {
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ /index.html;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
expires 1y;
add_header Cache-Control "public, immutable";
location /api/ {
proxy_pass http://192.168.2.186:9090/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}