Reverse proxy
This commit is contained in:
@@ -8,19 +8,17 @@ is_root
|
|||||||
|
|
||||||
dnf install -y nginx || exit $?
|
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 lab.cockpit;
|
server_name localhost.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 lab.robot;
|
server_name localhost.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