全球主机交流论坛

标题: 求助 哪吒面板 宝塔反待gRPC 一直无法访问 [打印本页]

作者: LumosAurora    时间: 2024-1-19 19:48
标题: 求助 哪吒面板 宝塔反待gRPC 一直无法访问
RT 求助坛友了

反向代理的配置是这么写的

#PROXY-START/
underscores_in_headers on;
location / {
    proxy_pass http://127.0.0.1:8008;
    proxy_set_header Host $http_host;
    proxy_set_header      Upgrade $http_upgrade;
    grpc_read_timeout 300s;
    grpc_send_timeout 300s;
    grpc_pass grpc://localhost:5555;
}
location ~ ^/(ws|terminal/.+)$  {
    proxy_pass http://127.0.0.1:8008;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
    proxy_set_header Host $http_host;
}
#PROXY-END/

/opt/nezha/dashboard/data/config.yaml 也添加了
proxygrpcport: 443
tls: true

cf上也开了grpc和云朵
作者: 笑花落半世琉璃    时间: 2024-1-19 19:52
让你用默认的端口 cf给你指定的非标不用
作者: LumosAurora    时间: 2024-1-19 19:55
笑花落半世琉璃 发表于 2024-1-19 19:52
让你用默认的端口 cf给你指定的非标不用

是要把grpc的端口放到8443这种?




欢迎光临 全球主机交流论坛 (https://sunk.eu.org/) Powered by Discuz! X3.4