mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-11-09 23:00:56 +00:00
fix: custom domain labels to frontend container/service
This commit is contained in:
parent
c615e4a41b
commit
e0a5b37d56
@ -1,14 +1,13 @@
|
|||||||
Add following labels to `frontend` service
|
Add following labels to `frontend` service
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- "traefik.http.routers.custom-domain.rule=Host(`custom.localhost`)"
|
traefik.http.routers.custom-domain.rule: Host(`custom.localhost`)
|
||||||
# Comment the entrypoints label if traefik already has default entrypoint set
|
# Comment the entrypoints label if traefik already has default entrypoint set
|
||||||
- "traefik.http.routers.custom-domain.entrypoints=web"
|
traefik.http.routers.custom-domain.entrypoints: web
|
||||||
- "traefik.http.middlewares.custom-domain.headers.customrequestheaders.Host=mysite.localhost"
|
traefik.http.middlewares.custom-domain.headers.customrequestheaders.Host: mysite.localhost
|
||||||
- "traefik.http.routers.custom-domain.middlewares=custom-domain"
|
traefik.http.routers.custom-domain.middlewares: custom-domain
|
||||||
# Add following header only if TLS is needed in case of live server, use one of below
|
# Add following header only if TLS is needed in case of live server
|
||||||
- "traefik.http.routers.custom-domain.tls.certresolver=myresolver" # For Single Bench
|
traefik.http.routers.custom-domain.tls.certresolver: main-resolver
|
||||||
- "traefik.http.routers.custom-domain.tls.certresolver=le" # For Docker Swarm
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
@ -18,12 +17,11 @@ frontend:
|
|||||||
...
|
...
|
||||||
labels:
|
labels:
|
||||||
...
|
...
|
||||||
- "traefik.http.routers.custom-domain.rule=Host(`custom.localhost`)"
|
traefik.http.routers.custom-domain.rule: Host(`custom.localhost`)
|
||||||
- "traefik.http.routers.custom-domain.entrypoints=web"
|
traefik.http.routers.custom-domain.entrypoints: web
|
||||||
- "traefik.http.middlewares.custom-domain.headers.customrequestheaders.Host=mysite.localhost"
|
traefik.http.middlewares.custom-domain.headers.customrequestheaders.Host: mysite.localhost
|
||||||
- "traefik.http.routers.custom-domain.middlewares=custom-domain"
|
traefik.http.routers.custom-domain.middlewares: custom-domain
|
||||||
# Add following header only if TLS is needed in case of live server
|
traefik.http.routers.custom-domain.tls.certresolver: main-resolver
|
||||||
- "traefik.http.routers.custom-domain.tls.certresolver=myresolver"
|
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user