Portainer 的反向代理:
1. 進入 Nginx Proxy Manager 後臺
- 選項單「Hosts」->找到域名的編輯選項->「Edit」
- 選項單「Custom locations」->「Add location」
- Define location:/portainer
- Scheme:http
- Forward Hostname / IP:Portainer IP (例如:192.168.1.101)
- Forward Port:Portainer port (例如:9000)
- 額外設定:
location /portainer/ {
rewrite ^/portainer(/.*)$ $1 break;
proxy_pass http://192.168.1.101:9000;
}
