From 418180fb59fdb3a819bdcf6b1b6a8d427526acca Mon Sep 17 00:00:00 2001 From: Colin Hebert Date: Sun, 19 Feb 2023 14:31:29 +1100 Subject: [PATCH] Enable Torznab/Newznab access --- services/authentication/configs/access.yml | 4 ++++ services/authentication/docker-compose.yml | 9 +-------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/services/authentication/configs/access.yml b/services/authentication/configs/access.yml index 3f67827..6a70232 100644 --- a/services/authentication/configs/access.yml +++ b/services/authentication/configs/access.yml @@ -41,6 +41,10 @@ access_control: resources: - '^/api$' - '^/api(/|\?)' + - domain_regex: '^prowlarr\.' + policy: bypass + resources: + - '^\d+/api$' # Allow Torznab/Newznab access # Effective default policy, only allow admins with two-factor - domain_regex: '.*' policy: two_factor diff --git a/services/authentication/docker-compose.yml b/services/authentication/docker-compose.yml index d5857ed..396bf1f 100644 --- a/services/authentication/docker-compose.yml +++ b/services/authentication/docker-compose.yml @@ -20,7 +20,7 @@ services: networks: - reverse-proxy volumes: - - authelia_config:/config/ + - ${NASCOMPOSE_SERVICES?}/authentication/volumes/authelia_config/:/config/ configs: - source: authelia_configuration target: /etc/authelia/configuration.yml @@ -40,13 +40,6 @@ networks: reverse-proxy: external: true -volumes: - authelia_config: - driver_opts: - type: none - o: bind - device: ${NASCOMPOSE_SERVICES?}/authentication/volumes/authelia_config/ - configs: authelia_configuration: file: ${NASCOMPOSE_SERVICES?}/authentication/configs/configuration.yml