Commit 6f6b23a4 authored by 吴文龙's avatar 吴文龙

fix

parent 723ba345
...@@ -67,25 +67,28 @@ frontend http-in ...@@ -67,25 +67,28 @@ frontend http-in
http-request add-header "X-Forwarded-Proto" "http" http-request add-header "X-Forwarded-Proto" "http"
acl transport_http_acl path_beg /api/v1/
acl letsencrypt_http_acl path_beg /.well-known/acme-challenge/
acl tb_api_acl path_beg /api/ /api_v1/ /swagger /webjars /v2/ /v3/ /static/rulenode/ /oauth2/ /login/oauth2/ /static/widgets/
acl iot_inteface_acl path_beg /iot/ acl iot_inteface_acl path_beg /iot/
acl dbapi_acl path_beg /api/dbapi/ acl dbapi_acl path_beg /api/dbapi/
acl job_acl path_beg /xxl-job-admin/ acl job_acl path_beg /xxl-job-admin/
acl pep_acl path_beg /iotExtention/ acl pep_acl path_beg /iotExtention/
acl board_acl path_beg /iotDashboard/ acl board_acl path_beg /iotDashboard/
acl transport_http_acl path_beg /api/v1/
acl letsencrypt_http_acl path_beg /.well-known/acme-challenge/
acl tb_api_acl path_beg /api/ /api_v1/ /swagger /webjars /v2/ /v3/ /static/rulenode/ /oauth2/ /login/oauth2/ /static/widgets/
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 }
use_backend letsencrypt_http if letsencrypt_http_acl
use_backend tb-http-backend if transport_http_acl
use_backend tb-api-backend if tb_api_acl
use_backend iot-interface-backend if iot_inteface_acl use_backend iot-interface-backend if iot_inteface_acl
use_backend iot-dbapi-backend if dbapi_acl use_backend iot-dbapi-backend if dbapi_acl
use_backend job-backend if job_acl use_backend job-backend if job_acl
use_backend pep-backend if pep_acl use_backend pep-backend if pep_acl
use_backend board-backend if board_acl use_backend board-backend if board_acl
use_backend letsencrypt_http if letsencrypt_http_acl
use_backend tb-http-backend if transport_http_acl
use_backend tb-api-backend if tb_api_acl
default_backend tb-web-backend default_backend tb-web-backend
......
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