pcrbot/HosBotManagerWeb

无法访问网页后台

Closed this issue · 2 comments

按照教程配置好文件后,因为安装了nginx 导致使用https://bcr.yourdomain.com/manage 这个方法访问404,是否可以使用端口访问,管理后台的端口号是多少

可以直接 http://ip:port/manage 登录,端口号就是 hoshino 中 bot.py 配置的端口号。

按照教程配置好文件后,因为安装了nginx 导致使用https://bcr.yourdomain.com/manage 这个方法访问404,是否可以使用端口访问,管理后台的端口号是多少

nginx为啥会导致不能访问?proxy没有添加/manage这个路径吗?

我这里的没问题啊

server {


  server_name bcr.yourdomain.com;

  location /
  {
    proxy_pass http://127.0.0.1:8000;
    proxy_set_header X-Real-IP $remote_addr;
  }

  location /static/ {
   alias /data/Mirai/data/bot/res/;
   expires 30d;
  }

  location /yobot/assets/ {
   alias /data/Mirai/data/bot/static/;
   expires 30d;
  }

  location /yobot/resource/ {
   alias /data/Mirai/data/bot/yobot_data/output/resource/;
   charset utf-8;
   expires 30d;
  }

  location /yobot/output/ {
   alias /data/Mirai/data/bot/yobot_data/output/;
   charset utf-8;
   expires 30d;
  }

  location /ws/ {
    # allow 172.16.0.0/12;
    deny all;
  }


    listen [::]:443 ssl; # managed by Certbot
    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/bcr.yourdomain.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/bcr.yourdomain.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}
server {
    if ($host = bcr.yourdomain.com) {
        return 301 https://$host$request_uri;
    } # managed by Certbot




  server_name bcr.yourdomain.com;

  listen 80;
  listen [::]:80;
    return 404; # managed by Certbot


}