Commit a62f3aa8 authored by 吴文龙's avatar 吴文龙

fix

parent 0c90994d
...@@ -71,6 +71,7 @@ frontend http-in ...@@ -71,6 +71,7 @@ frontend http-in
acl letsencrypt_http_acl path_beg /.well-known/acme-challenge/ acl letsencrypt_http_acl path_beg /.well-known/acme-challenge/
acl tb_api_acl path_beg /api/ /swagger /webjars /v2/ /v3/ /static/rulenode/ /oauth2/ /login/oauth2/ /static/widgets/ acl tb_api_acl path_beg /api/ /swagger /webjars /v2/ /v3/ /static/rulenode/ /oauth2/ /login/oauth2/ /static/widgets/
acl iot-interface_acl path_beg /iot/ acl iot-interface_acl path_beg /iot/
acl iot-dbapi_acl path_beg /api/dbapi/
redirect scheme https if !letsencrypt_http_acl !transport_http_acl { env(FORCE_HTTPS_REDIRECT) -m str true } redirect scheme https if !letsencrypt_http_acl !transport_http_acl { env(FORCE_HTTPS_REDIRECT) -m str true }
...@@ -78,6 +79,7 @@ frontend http-in ...@@ -78,6 +79,7 @@ frontend http-in
use_backend tb-http-backend if transport_http_acl use_backend tb-http-backend if transport_http_acl
use_backend tb-api-backend if tb_api_acl use_backend tb-api-backend if tb_api_acl
use_backend iot-interface-backend if iot-interface_acl use_backend iot-interface-backend if iot-interface_acl
use_backend iot-dbapi-backend if iot-dbapi_acl
default_backend tb-web-backend default_backend tb-web-backend
...@@ -129,3 +131,10 @@ backend iot-interface-backend ...@@ -129,3 +131,10 @@ backend iot-interface-backend
server iot-interface iot-interface:8080 check inter 5s resolvers docker_resolver resolve-prefer ipv4 server iot-interface iot-interface:8080 check inter 5s resolvers docker_resolver resolve-prefer ipv4
http-request set-header X-Forwarded-Port %[dst_port] http-request set-header X-Forwarded-Port %[dst_port]
backend iot-dbapi-backend
balance leastconn
option tcp-check
option log-health-checks
server iot-dbapi iot-dbapi:8520 check inter 5s resolvers docker_resolver resolve-prefer ipv4
http-request set-header X-Forwarded-Port %[dst_port]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment