From 75b8dc5d15ad160c44bcbfb83a1b74cab1e54836 Mon Sep 17 00:00:00 2001 From: cpu Date: Thu, 27 Mar 2025 00:35:51 +0100 Subject: [PATCH] labels example --- labels.example | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 labels.example diff --git a/labels.example b/labels.example new file mode 100644 index 0000000..33d3b67 --- /dev/null +++ b/labels.example @@ -0,0 +1,20 @@ +traefik.enable=true +traefik.docker.network=traefik +traefik.http.routers.game-timer.rule=Host(`game-timer.virtonline.eu`) +traefik.http.routers.game-timer.service=game-timer +traefik.http.routers.game-timer.tls=true +traefik.http.routers.game-timer.tls.certResolver=default +traefik.http.routers.game-timer.entrypoints=web-secure +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. +# To create a user:password pair, the following command can be used: +# echo $(htpasswd -nb user password) | sed -e s/\\$/\\$\\$/g +# +# 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 \ No newline at end of file