Reverse proxy

This commit is contained in:
2021-10-21 16:03:30 -04:00
parent 144e2d0c55
commit 95353505ae

View File

@@ -10,20 +10,15 @@ dnf install -y nginx || exit $?
cat <<- 'EOF' > /etc/nginx/conf.d/hartmanlab.conf cat <<- 'EOF' > /etc/nginx/conf.d/hartmanlab.conf
server { server {
listen 80; listen 80 default_server;
server_name localhost.cockpit; server_name localhost;
location /cockpit { location /cockpit {
proxy_pass http://localhost:9090/; proxy_pass http://localhost:9090/;
#proxy_redirect http://localhost:9090/; #proxy_redirect http://localhost:9090/;
} }
} location /robot {
server {
listen 80;
server_name localhost;
location /robot {
proxy_pass http://localhost:8888/; proxy_pass http://localhost:8888/;
#proxy_redirect http://localhost:8888/; proxy_redirect http://localhost:8888/;
} }
} }
EOF EOF