Fix path in file provider for common-auth middleware
This commit is contained in:
parent
b4aabba629
commit
930268b6c0
8
init.sh
8
init.sh
|
@ -1,6 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "[$0] Initializing..."
|
||||
cp .env.sample .env
|
||||
echo "[$0] Please edit .env file"
|
||||
docker network create traefik-network || true
|
||||
if [[ ! -f .env ]]; then
|
||||
cp .env.sample .env
|
||||
echo "[$0] Please edit .env file"
|
||||
fi
|
||||
echo "[$0] Done."
|
||||
exit 0
|
|
@ -2,4 +2,4 @@ http:
|
|||
middlewares:
|
||||
common-auth:
|
||||
basicAuth:
|
||||
usersFile: "http_auth"
|
||||
usersFile: "/etc/traefik/http_auth"
|
|
@ -3,7 +3,6 @@
|
|||
# Create/update http_auth file according to values in .env file
|
||||
source .env
|
||||
echo "${HTTP_USER}:${HTTP_PASSWORD}" > traefik/http_auth
|
||||
docker network create traefik-network || true
|
||||
|
||||
echo "[$0] ***** Pulling all images... *****"
|
||||
docker-compose pull
|
||||
|
|
Loading…
Reference in New Issue