mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 10:54:18 +00:00
Add ssl config for local development.
This commit is contained in:
parent
eccf9691c1
commit
f137b8df9b
@ -18,15 +18,23 @@ services:
|
|||||||
labels:
|
labels:
|
||||||
- "traefik.docker.network=reverse-proxy"
|
- "traefik.docker.network=reverse-proxy"
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
|
### <http> ###
|
||||||
|
- "traefik.http.middlewares.nopaque.headers.customrequestheaders.X-Forwarded-Proto=http"
|
||||||
- "traefik.http.routers.nopaque.entrypoints=web"
|
- "traefik.http.routers.nopaque.entrypoints=web"
|
||||||
# Change the next line to match your nopaque domain.
|
- "traefik.http.routers.nopaque.middlewares=nopaque@docker"
|
||||||
- "traefik.http.routers.nopaque.rule=Host(`nopaque.localhost`)"
|
- "traefik.http.routers.nopaque.rule=Host(`nopaque.localhost`)" # Change this to match your nopaque domain
|
||||||
# The next two lines enable HTTPS.
|
### </http> ###
|
||||||
# - "traefik.http.routers.nopaque.entrypoints=websecure"
|
### <https> ###
|
||||||
# - "traefik.http.routers.nopaque.tls.certresolver=myresolver"
|
- "traefik.http.middlewares.nopaquesecure.headers.customrequestheaders.X-Forwarded-Proto=https"
|
||||||
# The next two lines add Basic Authentication. More information: https://docs.traefik.io/middlewares/basicauth/
|
- "traefik.http.routers.nopaquesecure.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.nopaquesecure.middlewares=nopaquesecure@docker"
|
||||||
|
- "traefik.http.routers.nopaquesecure.rule=Host(`nopaque.localhost`)" # Change this to match your nopaque domain
|
||||||
|
- "traefik.http.routers.nopaquesecure.tls=true"
|
||||||
|
### </https> ###
|
||||||
|
### <basicauth help="https://docs.traefik.io/middlewares/basicauth/"> ###
|
||||||
# - "traefik.http.middlewares.nopaque.basicauth.users=name:hashed-password"
|
# - "traefik.http.middlewares.nopaque.basicauth.users=name:hashed-password"
|
||||||
# - "traefik.http.routers.nopaque.middlewares=nopaque"
|
# - "traefik.http.middlewares.nopaquesecure.basicauth.users=name:hashed-password"
|
||||||
|
### </basicauth> ###
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
- reverse-proxy
|
- reverse-proxy
|
||||||
|
Loading…
Reference in New Issue
Block a user