reverse proxy for backend

This commit is contained in:
2025-11-16 20:57:40 +00:00
parent 91e957dc25
commit ff32c4fa8e

View File

@@ -24,6 +24,14 @@ http {
root /var/www/certbot; root /var/www/certbot;
} }
location /api/ {
proxy_pass http://localhost:8080;
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;
}
} }
} }