2023-03-31 08:36:53 +08:00
|
|
|
# ------------------------------------------------------------
|
|
|
|
# domain.com
|
|
|
|
# ------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
server {
|
|
|
|
set $forward_scheme http;
|
|
|
|
set $server "172.17.0.1";
|
|
|
|
set $port 9000;
|
|
|
|
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
|
|
|
|
server_name domain.com;
|
|
|
|
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection $http_connection;
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
access_log /data/logs/proxy-host-2_access.log proxy;
|
|
|
|
error_log /data/logs/proxy-host-2_error.log warn;
|
|
|
|
|
2023-04-21 09:27:50 +08:00
|
|
|
location /AppManage/ {
|
2023-03-31 08:36:53 +08:00
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Forwarded-Scheme $scheme;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
2023-04-21 09:27:50 +08:00
|
|
|
proxy_pass http://172.17.0.1:5000/;
|
2023-03-31 08:36:53 +08:00
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection $http_connection;
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
}
|
2023-04-26 09:00:34 +08:00
|
|
|
|
|
|
|
location /portainer/ {
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Forwarded-Scheme $scheme;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_pass http://172.17.0.1:9091/;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection $http_connection;
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
}
|
2023-03-31 08:36:53 +08:00
|
|
|
|
2023-05-08 15:45:54 +08:00
|
|
|
location /nginxproxymanager/ {
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Forwarded-Scheme $scheme;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_pass http://172.17.0.1:9092/;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection $http_connection;
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
}
|
|
|
|
|
2023-03-31 08:36:53 +08:00
|
|
|
location / {
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection $http_connection;
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
|
|
|
# Proxy!
|
|
|
|
include conf.d/include/proxy.conf;
|
|
|
|
}
|
|
|
|
|
|
|
|
# Custom
|
|
|
|
include /data/nginx/custom/server_proxy[.]conf;
|
|
|
|
}
|