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
|
#!/bin/bash
|
||||||
|
|
||||||
echo "[$0] Initializing..."
|
echo "[$0] Initializing..."
|
||||||
cp .env.sample .env
|
docker network create traefik-network || true
|
||||||
echo "[$0] Please edit .env file"
|
if [[ ! -f .env ]]; then
|
||||||
|
cp .env.sample .env
|
||||||
|
echo "[$0] Please edit .env file"
|
||||||
|
fi
|
||||||
|
echo "[$0] Done."
|
||||||
exit 0
|
exit 0
|
|
@ -2,4 +2,4 @@ http:
|
||||||
middlewares:
|
middlewares:
|
||||||
common-auth:
|
common-auth:
|
||||||
basicAuth:
|
basicAuth:
|
||||||
usersFile: "http_auth"
|
usersFile: "/etc/traefik/http_auth"
|
|
@ -3,7 +3,6 @@
|
||||||
# Create/update http_auth file according to values in .env file
|
# Create/update http_auth file according to values in .env file
|
||||||
source .env
|
source .env
|
||||||
echo "${HTTP_USER}:${HTTP_PASSWORD}" > traefik/http_auth
|
echo "${HTTP_USER}:${HTTP_PASSWORD}" > traefik/http_auth
|
||||||
docker network create traefik-network || true
|
|
||||||
|
|
||||||
echo "[$0] ***** Pulling all images... *****"
|
echo "[$0] ***** Pulling all images... *****"
|
||||||
docker-compose pull
|
docker-compose pull
|
||||||
|
|
Loading…
Reference in New Issue