Reverse proxy
This commit is contained in:
@@ -12,20 +12,20 @@ cat <<- 'EOF' > /etc/nginx/conf.d/hartmanlab.conf
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
|
||||||
server_name localhost.cockpit;
|
server_name localhost.cockpit;
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://127.0.0.1:9090/;
|
proxy_pass http://127.0.0.1:9090/;
|
||||||
|
proxy_redirect http://127.0.0.1:9090/;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name localhost.robot;
|
||||||
|
location / {
|
||||||
|
proxy_pass http://127.0.0.1:8888/;
|
||||||
|
proxy_redirect http://127.0.0.1:8888/;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# server {
|
|
||||||
# listen 80;
|
|
||||||
# listen [::]:80;
|
|
||||||
# server_name localhost.robot;
|
|
||||||
# location / {
|
|
||||||
# proxy_pass http://127.0.0.1:8888/;
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
systemctl enable --now nginx
|
systemctl enable --now nginx
|
||||||
|
|||||||
Reference in New Issue
Block a user