Excuse me, how does the pyspider, running on the centos7.2 server open webui through the public network IP?

excuse me, how does the pyspider, running on the centos7.2 server open webui? through the public network IP?
config is written like this

{
    "scheduler" : {
        "xmlrpc-host": "0.0.0.0",
        "delete-time": 3600
    },
    "webui": {
        "port": 5555,
        "username": "admin",
        "password": "admin",
        "need-auth": true
    }
}
Mar.14,2021

is http://yourIP:5555
if it is a VPS, firewall or something, it has to be configured to ensure that this port is accessible. If it is home broadband, you need the router to do port mapping


pyspider configuration

    "webui": {
        "port": 5000,
        "username": "admin",
        "password": "admin",
        "need-auth": true
    }

NGINX configuration

server {
    listen 80;

    server_name spider.domain.cn; -sharp 

    -sharp 5000:
    location / {
        proxy_pass http://127.0.0.1:5000;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}
Menu