mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
31 lines
1.1 KiB
YAML
31 lines
1.1 KiB
YAML
################################################################################
|
|
# Don't forget to set the NOPAQUE_NUM_PROXIES variable in your .env #
|
|
################################################################################
|
|
version: "3.5"
|
|
|
|
networks:
|
|
reverse-proxy:
|
|
external:
|
|
name: reverse-proxy
|
|
|
|
services:
|
|
nopaque:
|
|
labels:
|
|
- "traefik.docker.network=reverse-proxy"
|
|
- "traefik.enable=true"
|
|
### <http> ###
|
|
- "traefik.http.routers.nopaque.entrypoints=web"
|
|
- "traefik.http.routers.nopaque.middlewares=redirect-to-https@file"
|
|
- "traefik.http.routers.nopaque.rule=Host(`${NOPAQUE_DOMAIN:-localhost}`)"
|
|
### </http> ###
|
|
### <https> ###
|
|
- "traefik.http.routers.nopaque-secure.entrypoints=web-secure"
|
|
- "traefik.http.routers.nopaque-secure.middlewares=hsts-header@file"
|
|
- "traefik.http.routers.nopaque-secure.rule=Host(`${NOPAQUE_DOMAIN:-localhost}`)"
|
|
- "traefik.http.routers.nopaque-secure.tls.certresolver=<CERTRESOLVER>"
|
|
- "traefik.http.routers.nopaque-secure.tls.options=intermediate@file"
|
|
### </https> ###
|
|
networks:
|
|
- default
|
|
- reverse-proxy
|