This commit is contained in:
2023-09-16 20:24:26 +02:00
parent adfafb94e4
commit 76131aac07

View File

@@ -6,10 +6,10 @@ server {
try_files $uri $uri/ $uri.html /index.html;
}
location /api/ {
proxy_pass https://api.eveal.shendai.rip/;
proxy_pass https://${API_URL}/;
rewrite /api/(.*) /$1 break;
proxy_ssl_server_name on;
proxy_set_header Host "api.eveal.shendai.rip";
proxy_set_header Host "${API_URL}";
proxy_set_header X-Forwarded-Proto https;
}