diff --git a/script-install-reverse-proxy b/script-install-reverse-proxy index 4790d274..0dfb8496 100644 --- a/script-install-reverse-proxy +++ b/script-install-reverse-proxy @@ -10,20 +10,15 @@ dnf install -y nginx || exit $? cat <<- 'EOF' > /etc/nginx/conf.d/hartmanlab.conf server { - listen 80; - server_name localhost.cockpit; + listen 80 default_server; + server_name localhost; location /cockpit { proxy_pass http://localhost:9090/; #proxy_redirect http://localhost:9090/; } -} - -server { - listen 80; - server_name localhost; - location /robot { + location /robot { proxy_pass http://localhost:8888/; - #proxy_redirect http://localhost:8888/; + proxy_redirect http://localhost:8888/; } } EOF