Reverse proxy

This commit is contained in:
2021-10-21 16:12:13 -04:00
parent 258aaa6cbf
commit 27329e5fa8

View File

@@ -10,12 +10,12 @@ 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 default_server; listen 80 default_server;
server_name localhost; 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;
} }
} }
EOF EOF