Add basicauth support

This commit is contained in:
Cassowary 2023-01-04 20:30:08 -08:00
parent 9fd9aefead
commit 5d24f7d30d
3 changed files with 16 additions and 0 deletions

View File

@ -13,6 +13,12 @@ COMPOSE_FILE="compose.yml"
#TFA_MIDDLEWARE_NAME="keycloak"
#COMPOSE_FILE="$COMPOSE_FILE:compose.sso.yml"
# Password Sign-On using traefik http password
# Use htpasswd to generate the passwords for the user list, then set the below variable to
# something like 'username:$$passwordhash', comma separated for multiple users.
#HTTP_BASIC_AUTH_PASSWORDS=
#COMPOSE_FILE="$COMPOSE_FILE:compose.basicauth.yml"
# The voila version to pin to (can be overriden by requirements.txt)
VOILA_VERSION=0.4.0
# The directory to run voila from.

9
compose.basicauth.yml Normal file
View File

@ -0,0 +1,9 @@
---
version: "3.8"
services:
app:
environment:
- HTTP_BASIC_AUTH_PASSWORDS
deploy:
labels:
- "traefik.http.middlewares.${STACK_NAME}.basicauth.users=${HTTP_BASIC_AUTH_PASSWORDS}"

View File

@ -1,3 +1,4 @@
---
version: "3.8"
services:
app: