From dc6f3de57b4c04745bb0bfcdec1983b443b1ad4d Mon Sep 17 00:00:00 2001 From: Blueyzachary <36614980+Blueyzachary@users.noreply.github.com> Date: Thu, 7 Jan 2021 05:58:31 -0700 Subject: [PATCH] Add manager to Legacy nginx Conf Add a line to the legacy.nginx.conf file to enable access to the Dash Manager from the legacy domain, in case it is the only domain enabled. --- templates/sites/legacy.conf.template | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/templates/sites/legacy.conf.template b/templates/sites/legacy.conf.template index 242094c..1705573 100644 --- a/templates/sites/legacy.conf.template +++ b/templates/sites/legacy.conf.template @@ -39,6 +39,15 @@ server { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } + + location /manager { + proxy_pass http://dash:3000/manager; + proxy_redirect off; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + } server {