>> nginx 配置
upstream supervisord {
server 127.0.0.1:9001;
keepalive 8;
}
server
{
listen 80;
listen [::]:80;
# server_name
domain.com;
# auth_basic "Restricted Access";
# auth_basic_user_file /etc/nginx/conf/htpasswd.users;
location / {
proxy_pass http://supervisord;
proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
# proxy_set_header Host $host;
# proxy_cache_bypass $http_upgrade;
}
}
>> supervisor 配置
[inet_http_server]
port = 127.0.0.1:9001
username = user
password = 123
>> 已测试可以正常访问