前言

请教大家,可能是哪里配置的问题吗?以及如何排查问题
安装参考:@ovwane https://testerhome.com/topics/17233
邀请回答:@qingran2015 @chenhengjie123

nginx 配置:修改部分如下:

    server {
      listen 80;
      server_name 10.60.82.72;
#      server_name stf.ovwane.com;
      keepalive_timeout 70; 
#     resolver 114.114.114.114 8.8.8.8 valid=300s;
#     resolver_timeout 10s;

    location ~ "^/d/stfpro1/([^/]+)/(?<port>[0-9]{5})/$" {
      proxy_pass http://10.60.103.71:$port/;
      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection $connection_upgrade;
      proxy_set_header X-Forwarded-For $remote_addr;
      proxy_set_header X-Real-IP $remote_addr;
    }

    location ~ "^/d/stfpro2/([^/]+)/(?<port>[0-9]{5})/$" {
      proxy_pass http://10.60.114.29:$port/;
      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection $connection_upgrade;
      proxy_set_header X-Forwarded-For $remote_addr;
      proxy_set_header X-Real-IP $remote_addr;
    }

    location ~ "^/d/demo1/([^/]+)/(?<port>[0-9]{5})/$"{
      proxy_pass http://10.60.145.18:$port/;
      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection $connection_upgrade;
      proxy_set_header X-Forwarded-For $remote_addr;
      proxy_set_header X-Real-IP $remote_addr;
    }

stf 服务端,.env:

STF_VERSION=3.4.0
STF_HOST=10.60.82.72
STF_URL=http://10.60.82.72
STF_IMAGE=openstf/stf:v3.4.0
STF_SECRET=RETHINKDBAUTHKEYANY

provider 设置

iSTF_VERSION=3.4.0
STF_HOST=10.60.82.72
STF_URL=http://10.60.82.72
STF_IMAGE=openstf/stf:v3.4.0
STF_PROVIDER=stfpro1

stf master 页面:

provider 设备:

而且 master 与 provider 之间的连接正常:


↙↙↙阅读原文可查看相关链接,并与作者交流