Reverse proxy

This commit is contained in:
2021-10-21 15:53:07 -04:00
parent e5308701fb
commit 5200bc6d09

View File

@@ -9,21 +9,21 @@ is_root
dnf install -y nginx || exit $?
cat <<- 'EOF' > /etc/nginx/conf.d/hartmanlab.conf
server {
listen 80;
server_name localhost.cockpit;
location / {
proxy_pass http://127.0.0.1:9090/;
proxy_redirect http://127.0.0.1:9090/;
proxy_pass http://localhost:9090/;
proxy_redirect http://localhost: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/;
proxy_pass http://localhost:8888/;
proxy_redirect http://localhost:8888/;
}
}
EOF