From 66e005f37a690e03e8f1a7bcb7f5f1c95991e8a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Sat, 23 Jul 2022 17:46:54 +0200 Subject: [PATCH] aquatic_ws.Dockerfile: enable access control in "allow" mode --- docker/aquatic_ws.Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docker/aquatic_ws.Dockerfile b/docker/aquatic_ws.Dockerfile index 6e556f0..0b3ed8a 100644 --- a/docker/aquatic_ws.Dockerfile +++ b/docker/aquatic_ws.Dockerfile @@ -8,10 +8,11 @@ # If no changes are made to configuration, aquatic_ws is run: # - on port 3000 # - without TLS -# - with no info hash access control # - with http health checks enabled +# - only allowing announces for hashes in access list, e.g., contained +# in ACCESS_LIST_CONTENTS env var. By default, this file is empty. # -# Run from root directory of repository with: +# Run from root directory of aquatic repository with: # $ docker build -t aquatic-ws -f docker/aquatic_ws.Dockerfile . # $ docker run -it --ulimit memlock=65536:65536 -p 0.0.0.0:3000:3000 --name aquatic-ws aquatic-ws @@ -29,6 +30,9 @@ ENV CONFIG_FILE_CONTENTS "\ log_level = 'info'\n\ [network]\n\ enable_http_health_checks = true\n\ + [access_list]\n\ + mode = 'allow'\n\ + path = './access-list.txt'\n\ " ENV ACCESS_LIST_CONTENTS ""