Reverse proxy

This commit is contained in:
2021-10-21 15:55:55 -04:00
parent 5200bc6d09
commit 144e2d0c55

View File

@@ -12,18 +12,18 @@ cat <<- 'EOF' > /etc/nginx/conf.d/hartmanlab.conf
server { server {
listen 80; listen 80;
server_name localhost.cockpit; server_name localhost.cockpit;
location / { location /cockpit {
proxy_pass http://localhost:9090/; proxy_pass http://localhost:9090/;
proxy_redirect http://localhost:9090/; #proxy_redirect http://localhost:9090/;
} }
} }
server { server {
listen 80; listen 80;
server_name localhost.robot; server_name localhost;
location / { location /robot {
proxy_pass http://localhost:8888/; proxy_pass http://localhost:8888/;
proxy_redirect http://localhost:8888/; #proxy_redirect http://localhost:8888/;
} }
} }
EOF EOF