From 97f204b1b0cf0524b7cbc97c1df02e0e50359087 Mon Sep 17 00:00:00 2001 From: Kipchumba Bett Date: Thu, 17 Oct 2024 11:38:50 +0300 Subject: [PATCH] OZ-627: Use variable for proxy pass targets --- proxy/default.conf.template | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxy/default.conf.template b/proxy/default.conf.template index 0ac9a07..ef376ff 100644 --- a/proxy/default.conf.template +++ b/proxy/default.conf.template @@ -174,6 +174,7 @@ server { location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; - proxy_pass http://fhir-odoo:8080; + set $fhir-odoo fhir-odoo:8080; + proxy_pass http://$fhir-odoo; } }