Reverse proxy
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Adds hostnames for local system services
|
# Adds a reverse proxy for local system services
|
||||||
# Copyright 2021 Bryan C. Roessler
|
# Copyright 2021 Bryan C. Roessler
|
||||||
|
|
||||||
[[ -f functions ]] && . functions || exit 1
|
[[ -f functions ]] && . functions || exit 1
|
||||||
@@ -13,14 +13,14 @@ 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;
|
||||||
server_name cockpit;
|
server_name lab.cockpit;
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://127.0.0.1:9090/;
|
proxy_pass http://127.0.0.1:9090/;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name robot;
|
server_name lab.robot;
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://127.0.0.1:8888/;
|
proxy_pass http://127.0.0.1:8888/;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user