Browse Source
Used thingsboard/haproxy-certbot image (#4354)
* Used thingsboard/haproxy-certbot image
* Used 1.3.0 version of thingsboard/haproxy-certbot
pull/4372/head
vzikratyi-tb
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
3 deletions
-
docker/docker-compose.yml
-
docker/haproxy/config/haproxy.cfg
|
|
@ -216,7 +216,7 @@ services: |
|
|
haproxy: |
|
|
haproxy: |
|
|
restart: always |
|
|
restart: always |
|
|
container_name: "${LOAD_BALANCER_NAME}" |
|
|
container_name: "${LOAD_BALANCER_NAME}" |
|
|
image: xalauc/haproxy-certbot:1.7.9 |
|
|
image: thingsboard/haproxy-certbot:1.3.0 |
|
|
volumes: |
|
|
volumes: |
|
|
- ./haproxy/config:/config |
|
|
- ./haproxy/config:/config |
|
|
- ./haproxy/letsencrypt:/etc/letsencrypt |
|
|
- ./haproxy/letsencrypt:/etc/letsencrypt |
|
|
|
|
|
@ -54,7 +54,7 @@ frontend http-in |
|
|
|
|
|
|
|
|
option forwardfor |
|
|
option forwardfor |
|
|
|
|
|
|
|
|
reqadd X-Forwarded-Proto:\ http |
|
|
http-request add-header "X-Forwarded-Proto" "http" |
|
|
|
|
|
|
|
|
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/ |
|
|
@ -73,7 +73,7 @@ frontend https_in |
|
|
|
|
|
|
|
|
option forwardfor |
|
|
option forwardfor |
|
|
|
|
|
|
|
|
reqadd X-Forwarded-Proto:\ https |
|
|
http-request add-header "X-Forwarded-Proto" "https" |
|
|
|
|
|
|
|
|
acl transport_http_acl path_beg /api/v1/ |
|
|
acl transport_http_acl path_beg /api/v1/ |
|
|
acl tb_api_acl path_beg /api/ /swagger /webjars /v2/ /static/rulenode/ /oauth2/ /login/oauth2/ /static/widgets/ |
|
|
acl tb_api_acl path_beg /api/ /swagger /webjars /v2/ /static/rulenode/ /oauth2/ /login/oauth2/ /static/widgets/ |
|
|
|