From a57285a176c31973df0cdf4314b52093b25fc163 Mon Sep 17 00:00:00 2001 From: Bryan Roessler Date: Thu, 21 Oct 2021 15:08:23 -0400 Subject: [PATCH] Reverse proxy --- script-install-hostnames => script-install-reverse-proxy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename script-install-hostnames => script-install-reverse-proxy (80%) diff --git a/script-install-hostnames b/script-install-reverse-proxy similarity index 80% rename from script-install-hostnames rename to script-install-reverse-proxy index 2394a656..6e9b5ab6 100644 --- a/script-install-hostnames +++ b/script-install-reverse-proxy @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# Adds hostnames for local system services +# Adds a reverse proxy for local system services # Copyright 2021 Bryan C. Roessler [[ -f functions ]] && . functions || exit 1 @@ -13,14 +13,14 @@ dnf install -y nginx || exit $? cat <<- 'EOF' > /etc/nginx/conf.d/hartmanlab.conf server { listen 80; - server_name cockpit; + server_name lab.cockpit; location / { proxy_pass http://127.0.0.1:9090/; } } server { listen 80; - server_name robot; + server_name lab.robot; location / { proxy_pass http://127.0.0.1:8888/; }