mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-26 09:05:10 +00:00
fix: traefik router for acme certs
This commit is contained in:
parent
dd82961e4c
commit
9ff5a1ccfb
3 changed files with 10 additions and 1 deletions
|
|
@ -68,6 +68,8 @@ docker compose --project-name <project-name> -f ~/gitops/docker-compose.yml up -
|
||||||
|
|
||||||
### Setup Frappe using containerized MariaDB and Redis with Letsencrypt certificates.
|
### Setup Frappe using containerized MariaDB and Redis with Letsencrypt certificates.
|
||||||
|
|
||||||
|
In this case make sure you've set `LETSENCRYPT_EMAIL` and `SITES` environment variables are set or certificates won't work.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Generate YAML
|
# Generate YAML
|
||||||
docker compose -f compose.yaml \
|
docker compose -f compose.yaml \
|
||||||
|
|
@ -82,6 +84,8 @@ docker compose --project-name <project-name> -f ~/gitops/docker-compose.yml up -
|
||||||
|
|
||||||
### Setup ERPNext using containerized MariaDB and Redis with Letsencrypt certificates.
|
### Setup ERPNext using containerized MariaDB and Redis with Letsencrypt certificates.
|
||||||
|
|
||||||
|
In this case make sure you've set `LETSENCRYPT_EMAIL` and `SITES` environment variables are set or certificates won't work.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Generate YAML
|
# Generate YAML
|
||||||
docker compose -f compose.yaml \
|
docker compose -f compose.yaml \
|
||||||
|
|
|
||||||
|
|
@ -43,3 +43,8 @@ PROXY_READ_TIMOUT=
|
||||||
# All Values allowed by nginx client_max_body_size are allowed, default value is 50m
|
# All Values allowed by nginx client_max_body_size are allowed, default value is 50m
|
||||||
# Necessary if the upload limit in the frappe application is increased
|
# Necessary if the upload limit in the frappe application is increased
|
||||||
CLIENT_MAX_BODY_SIZE=
|
CLIENT_MAX_BODY_SIZE=
|
||||||
|
|
||||||
|
# List of sites for letsencrypt certificates quoted with backtick (`) and separated by comma (,)
|
||||||
|
# More https://doc.traefik.io/traefik/routing/routers/#rule
|
||||||
|
# About acme https://doc.traefik.io/traefik/https/acme/#domain-definition
|
||||||
|
SITES=
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ services:
|
||||||
- traefik.http.services.frontend.loadbalancer.server.port=8080
|
- traefik.http.services.frontend.loadbalancer.server.port=8080
|
||||||
- traefik.http.routers.frontend-http.entrypoints=websecure
|
- traefik.http.routers.frontend-http.entrypoints=websecure
|
||||||
- traefik.http.routers.frontend-http.tls.certresolver=main-resolver
|
- traefik.http.routers.frontend-http.tls.certresolver=main-resolver
|
||||||
- traefik.http.routers.frontend-http.rule=HostRegexp(`{any:.+}`)
|
- traefik.http.routers.frontend-http.rule=Host(${SITES:?List of sites not set})
|
||||||
|
|
||||||
proxy:
|
proxy:
|
||||||
image: traefik:2.5
|
image: traefik:2.5
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue