安裝 Nginx Proxy Manager
🎳

安裝 Nginx Proxy Manager

Tags
docker
Published
Author
安裝 Nginx Proxy Manager
docker pull jc21/nginx-proxy-manager
 
 
docker run -d \ --name=nginx-proxy-manager \ -p 81:81 \ -p 80:80 \ -p 443:443 \ jc21/nginx-proxy-manager
docker run -d \ --name=nginx-proxy-manager \ -p 81:81 \ -p 80:80 \ -p 443:443 \ -v /root/npm/data:/data \ -v /root/npm/letsencrypt:/etc/letsencrypt \ --restart always \ jc21/nginx-proxy-manager:latest
 
 
 
查看容器IP
ip addr show docker0
 
 
 
 
 
 
Nginx Proxy Manager 管理頁面的連接埠,使用瀏覽器打開 http://IP:81 即可進入
 
 
Nginx Proxy Manager 管理
默認賬戶 admin@example.com 默認密碼 changeme
 
 
 
 
不可描述共存
cd /root/npm/data/nginx/proxy_host
location ^~ /fuckgfw { #fuckgfw换成你前面设置的面板的url根路径 proxy_pass http://158.101.3.171:54331/fuckgfw; # IP填服务器IP,这边不能填127.0.0.1,因为是在容器里,54331换成你xui面板的端口 proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location /plogger { # plogger填你前面设置的ws的路径 proxy_redirect off; proxy_pass http://158.101.3.171:13997; # IP填服务器IP,这边不能填127.0.0.1,因为是在容器里,13997换成你入站规则那边的IP proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $http_host; proxy_read_timeout 300s; # Show realip in v2ray access.log proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; }
 
notion image