added auth so subscribe request

This commit is contained in:
cpu
2025-03-28 15:06:02 +01:00
parent 0414bdb217
commit 451a61d357
4 changed files with 133 additions and 9 deletions

View File

@@ -1,13 +1,21 @@
# Enable Traefik for this container
traefik.enable=true
# Docker Network
traefik.docker.network=traefik
# Route requests based on Host
traefik.http.routers.game-timer.rule=Host(`game-timer.virtonline.eu`)
traefik.http.routers.game-timer.service=game-timer
# Specify the entrypoint ('websecure' for HTTPS)
traefik.http.routers.game-timer.entrypoints=web-secure
traefik.http.routers.game-timer.tls=true
traefik.http.routers.game-timer.tls.certResolver=default
traefik.http.routers.game-timer.entrypoints=web-secure
# Link the router to the service defined below
traefik.http.routers.game-timer.service=game-timer
# Point the service to the container's port
traefik.http.services.game-timer.loadbalancer.server.port=80
traefik.http.routers.game-timer.middlewares=game-timer-auth
# Declaring the user list
#
# Note: when used in docker-compose.yml all dollar signs in the hash need to be doubled for escaping.
@@ -17,4 +25,7 @@ traefik.http.routers.game-timer.middlewares=game-timer-auth
# Also note that dollar signs should NOT be doubled when they are not evaluated (e.g. Ansible docker_container module).
# for docker lables use
# `htpasswd -nb user password`
traefik.http.middlewares.game-timer-auth.basicauth.users=user:$apr1$rFge2lVe$DpoqxMsxSVJubFLXu4OMr1
traefik.http.middlewares.game-timer-auth.basicauth.users=user:$apr1$rFge2lVe$DpoqxMsxSVJubFLXu4OMr1
# Apply the middleware to the router
traefik.http.routers.game-timer.middlewares=game-timer-auth