This commit is contained in:
mike
2025-12-17 15:02:35 +01:00
parent 2a92d51c92
commit ab755c0adf
2 changed files with 11 additions and 2 deletions

View File

@@ -20,6 +20,15 @@ server {
try_files /index.html =404;
}
# Proxy API requests to plato.lan
location /api/ {
proxy_pass http://plato.lan:1234/v1/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
# Gzip compression for better performance
gzip on;
gzip_vary on;