1
0

daemon.py: Add authentication to Watchtower.

Define abstract class AuthenticatedServer
This commit is contained in:
ThomasV
2020-05-12 10:02:22 +02:00
parent 2fed218452
commit d3fb68575d
2 changed files with 134 additions and 119 deletions

View File

@@ -318,8 +318,10 @@ fi
if [[ $1 == "configure_test_watchtower" ]]; then
# carol is the watchtower of bob
$carol setconfig -o run_local_watchtower true
$carol setconfig -o watchtower_user wtuser
$carol setconfig -o watchtower_password wtpassword
$carol setconfig -o watchtower_address 127.0.0.1:12345
$bob setconfig -o watchtower_url http://127.0.0.1:12345
$bob setconfig -o watchtower_url http://wtuser:wtpassword@127.0.0.1:12345
fi
if [[ $1 == "watchtower" ]]; then