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; }