2024-05-15 16:00:25 +00:00
|
|
|
# conduwuit - Traefik Reverse Proxy Labels
|
2024-03-06 02:54:44 +00:00
|
|
|
version: '2.4' # uses '2.4' for cpuset
|
2020-08-04 20:04:27 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
homeserver:
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.docker.network=proxy" # Change this to the name of your Traefik docker proxy network
|
|
|
|
|
2024-05-15 16:00:25 +00:00
|
|
|
- "traefik.http.routers.to-conduwuit.rule=Host(`<SUBDOMAIN>.<DOMAIN>`)" # Change to the address on which conduwuit is hosted
|
|
|
|
- "traefik.http.routers.to-conduwuit.tls=true"
|
|
|
|
- "traefik.http.routers.to-conduwuit.tls.certresolver=letsencrypt"
|
|
|
|
- "traefik.http.routers.to-conduwuit.middlewares=cors-headers@docker"
|
2021-08-17 12:44:53 +00:00
|
|
|
|
2021-09-03 19:51:17 +00:00
|
|
|
- "traefik.http.middlewares.cors-headers.headers.accessControlAllowOriginList=*"
|
2021-08-17 12:44:53 +00:00
|
|
|
- "traefik.http.middlewares.cors-headers.headers.accessControlAllowHeaders=Origin, X-Requested-With, Content-Type, Accept, Authorization"
|
|
|
|
- "traefik.http.middlewares.cors-headers.headers.accessControlAllowMethods=GET, POST, PUT, DELETE, OPTIONS"
|
|
|
|
|
|
|
|
# We need some way to server the client and server .well-known json. The simplest way is to use a nginx container
|
|
|
|
# to serve those two as static files. If you want to use a different way, delete or comment the below service, here
|
2024-04-23 05:39:13 +00:00
|
|
|
# and in the docker compose file.
|
2021-08-17 12:44:53 +00:00
|
|
|
well-known:
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.docker.network=proxy"
|
|
|
|
|
|
|
|
- "traefik.http.routers.to-matrix-wellknown.rule=Host(`<SUBDOMAIN>.<DOMAIN>`) && PathPrefix(`/.well-known/matrix`)"
|
|
|
|
- "traefik.http.routers.to-matrix-wellknown.tls=true"
|
|
|
|
- "traefik.http.routers.to-matrix-wellknown.tls.certresolver=letsencrypt"
|
|
|
|
- "traefik.http.routers.to-matrix-wellknown.middlewares=cors-headers@docker"
|
|
|
|
|
2021-09-03 19:51:17 +00:00
|
|
|
- "traefik.http.middlewares.cors-headers.headers.accessControlAllowOriginList=*"
|
2021-08-17 12:44:53 +00:00
|
|
|
- "traefik.http.middlewares.cors-headers.headers.accessControlAllowHeaders=Origin, X-Requested-With, Content-Type, Accept, Authorization"
|
|
|
|
- "traefik.http.middlewares.cors-headers.headers.accessControlAllowMethods=GET, POST, PUT, DELETE, OPTIONS"
|
|
|
|
|
2020-08-04 20:04:27 +00:00
|
|
|
|
|
|
|
### Uncomment this if you uncommented Element-Web App in the docker-compose.yml
|
|
|
|
# element-web:
|
|
|
|
# labels:
|
|
|
|
# - "traefik.enable=true"
|
|
|
|
# - "traefik.docker.network=proxy" # Change this to the name of your Traefik docker proxy network
|
|
|
|
|
|
|
|
# - "traefik.http.routers.to-element-web.rule=Host(`<SUBDOMAIN>.<DOMAIN>`)" # Change to the address on which Element-Web is hosted
|
|
|
|
# - "traefik.http.routers.to-element-web.tls=true"
|
|
|
|
# - "traefik.http.routers.to-element-web.tls.certresolver=letsencrypt"
|