From e5308701fb83643d6341949e84821d0dc0c1f799 Mon Sep 17 00:00:00 2001 From: Bryan Roessler Date: Thu, 21 Oct 2021 15:44:43 -0400 Subject: [PATCH] Reverse proxy --- script-install-reverse-proxy | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/script-install-reverse-proxy b/script-install-reverse-proxy index 3f28e570..06850e69 100644 --- a/script-install-reverse-proxy +++ b/script-install-reverse-proxy @@ -12,20 +12,20 @@ cat <<- 'EOF' > /etc/nginx/conf.d/hartmanlab.conf server { listen 80; - listen [::]:80; server_name localhost.cockpit; location / { proxy_pass http://127.0.0.1:9090/; + proxy_redirect http://127.0.0.1:9090/; + } +} +server { + listen 80; + server_name localhost.robot; + location / { + proxy_pass http://127.0.0.1:8888/; + proxy_redirect http://127.0.0.1:8888/; } } -# server { -# listen 80; -# listen [::]:80; -# server_name localhost.robot; -# location / { -# proxy_pass http://127.0.0.1:8888/; -# } -# } EOF systemctl enable --now nginx