From d6ecde4bd8d72c9c0c169134eac468207c8bdfd4 Mon Sep 17 00:00:00 2001 From: Drikus Roor Date: Wed, 7 Feb 2024 18:58:44 +0100 Subject: [PATCH] config: Add proxy configuration for /server/ route --- nginx/custom-nginx.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nginx/custom-nginx.conf b/nginx/custom-nginx.conf index 745ac9f0b..832dfc9f0 100644 --- a/nginx/custom-nginx.conf +++ b/nginx/custom-nginx.conf @@ -18,6 +18,14 @@ server { } # Proxy all other requests to the Django app + location /server/ { + proxy_pass http://server:8000; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + location / { proxy_pass http://server:8000; proxy_set_header Host $host;