From d05b8ea76b42f4a29749c4ef87382388e30b4ecf Mon Sep 17 00:00:00 2001 From: db-2001 Date: Wed, 6 Mar 2024 00:06:16 -0500 Subject: [PATCH] more conf tweaks --- nginx/conf.d/tranga.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nginx/conf.d/tranga.conf b/nginx/conf.d/tranga.conf index 3a9dffb..fc02585 100644 --- a/nginx/conf.d/tranga.conf +++ b/nginx/conf.d/tranga.conf @@ -12,7 +12,10 @@ server { location ~ /api/ { proxy_pass_request_headers on; - proxy_pass http://tranga-api:6531/; + set $upstream_app tranga-api; + set $upstream_port 6531; + set $upstream_proto http: + proxy_pass $upstream_proto://$upstream_app:$upstream_port; } #error_page 404 /404.html;