fix: improve proxy config

This commit is contained in:
tigattack
2025-09-22 22:45:12 +01:00
parent bf2ea908f4
commit c3aa5534f3
2 changed files with 22 additions and 1 deletions

View File

@@ -36,6 +36,10 @@ server {
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;
proxy_set_header X-Forwarded-Host $host;
# Preserve original client IP through proxy chain
proxy_set_header X-Original-Forwarded-For $http_x_forwarded_for;
# CORS headers for API calls
add_header Access-Control-Allow-Origin * always;