0

我们正在尝试在 F5 中配置 docker 端口方法配置,我们在 Irule 下面添加了我们无法登录到 docker repo

when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/v2/"} {
  set ARTI_PROTO http
  set ARTI_PORT 3000
  set ARTI_HOST test.artifactory.com (shoud this be nice URL or server name/IP where application is hosted)
    HTTP::uri /artifactory/api/docker/testdocker[HTTP::uri]
    HTTP::header insert X-Forwarded-Proto $ARTI_PROTO
    HTTP::header insert X-Forwarded-Port $ARTI_PORT
    HTTP::header insert Host $ARTI_HOST:$ARTI_PORT  -- is this value of host and one in below line  should be same or different ?
    HTTP::header insert X-Artifactory-Override-Base-Url $ARTI_PROTO://$ARTI_HOST:$ARTI_PORT/artifactory
}
}

我们正在低于错误

来自守护进程的错误响应:登录尝试https://test.artifactory.com:3000/v2/失败,状态为:400 Bad Request

我们在 irule 配置上做错了吗?有人可以帮助我们映射正确的配置吗

4

0 回答 0