From 21a7a6f4f731e92e1f506948698800e9d6fb769a Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Mon, 24 Oct 2022 20:07:29 +0200 Subject: [PATCH] upstream --- nginx/nginx.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 748ff77..69045eb 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -58,7 +58,9 @@ http { } proxy_pass_request_headers on; - proxy_pass http://cors-school-backend:8080/; + + set $upstream_backend cors-school-backend; + proxy_pass http://$upstream_backend:8080/; } }