Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
docker-iot-v3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
deploy
docker-iot-v3
Commits
60335100
Commit
60335100
authored
Sep 22, 2022
by
chonghaohao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update haproxy.cfg
parent
2184774d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
haproxy.cfg
haproxy/config/haproxy.cfg
+24
-0
No files found.
haproxy/config/haproxy.cfg
View file @
60335100
...
@@ -70,12 +70,18 @@ frontend http-in
...
@@ -70,12 +70,18 @@ frontend http-in
acl transport_http_acl path_beg /api/v1/
acl transport_http_acl path_beg /api/v1/
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_inteface_acl path_beg /iot/
acl dbapi_acl path_beg /dbapi/
acl job_acl path_beg /job/
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 letsencrypt_http if letsencrypt_http_acl
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-inteface-backend if iot_inteface_acl
use_backend dbapi-backend if dbapi_acl
use_backend job-backend if job_acl
default_backend tb-web-backend
default_backend tb-web-backend
...
@@ -119,3 +125,21 @@ backend tb-api-backend
...
@@ -119,3 +125,21 @@ backend tb-api-backend
server tbApi1 tb-core1:8080 check inter 5s resolvers docker_resolver resolve-prefer ipv4
server tbApi1 tb-core1:8080 check inter 5s resolvers docker_resolver resolve-prefer ipv4
server tbApi2 tb-core2:8080 check inter 5s resolvers docker_resolver resolve-prefer ipv4
server tbApi2 tb-core2: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-inteface-backend
balance leastconn
option tcp-check
option log-health-checks
server iot-inteface 192.168.201.2:8080 check inter 5s resolvers docker_resolver resolve-prefer ipv4
backend dbapi-backend
balance leastconn
option tcp-check
option log-health-checks
server dbapi 192.168.201.2:8520 check inter 5s resolvers docker_resolver resolve-prefer ipv4
backend job-backend
balance leastconn
option tcp-check
option log-health-checks
server job 192.168.201.2:8082 check inter 5s resolvers docker_resolver resolve-prefer ipv4
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment