From 76131aac0751b1c1fcb0c5d8e59ace3e0fb454ad Mon Sep 17 00:00:00 2001 From: Sirttas Date: Sat, 16 Sep 2023 20:24:26 +0200 Subject: [PATCH] API_URL --- nginx.conf.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx.conf.template b/nginx.conf.template index 3ad0a62..522f286 100644 --- a/nginx.conf.template +++ b/nginx.conf.template @@ -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; }