From f01cf590c34c94f7614e5e91743067dfc4e04244 Mon Sep 17 00:00:00 2001 From: Simon Dalvai Date: Mon, 10 Jun 2024 14:33:03 +0200 Subject: [PATCH] infra: finally fix /api/ proxy --- infrastructure/nginx/default.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infrastructure/nginx/default.conf b/infrastructure/nginx/default.conf index 6934667..7ede69d 100644 --- a/infrastructure/nginx/default.conf +++ b/infrastructure/nginx/default.conf @@ -12,8 +12,9 @@ server { gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript; location /api/ { + proxy_ssl_server_name on; proxy_pass https://backend.app.sfscon.testingmachine.eu/api/; - proxy_set_header Host $host; + proxy_set_header Host backend.app.sfscon.testingmachine.eu; } location / {