Set up notifiarr
This commit is contained in:
@@ -26,3 +26,5 @@ NASCOMPOSE_AUTHELIA_SMTP_SENDER=
|
|||||||
NASCOMPOSE_DUCKDNS_DOMAIN=
|
NASCOMPOSE_DUCKDNS_DOMAIN=
|
||||||
|
|
||||||
NASCOMPOSE_TRANSMISSION_VPNREGION=
|
NASCOMPOSE_TRANSMISSION_VPNREGION=
|
||||||
|
|
||||||
|
NASCOMPOSE_NOTIFIARR_MODE=
|
||||||
|
|||||||
@@ -34,8 +34,9 @@ access_control:
|
|||||||
policy: one_factor
|
policy: one_factor
|
||||||
subject:
|
subject:
|
||||||
- 'group:transmission-basic'
|
- 'group:transmission-basic'
|
||||||
# Disable authentication on API protected by API keys
|
# Disable authentication on API protected by API keys.
|
||||||
- domain_regex: '^(bazarr|prowlarr|radarr|sonarr)\.'
|
# Note those are behind authelia, therefore external access to the API; internal access doesn't require a bypass
|
||||||
|
- domain_regex: '^(prowlarr|radarr|sonarr|notifiarr)\.'
|
||||||
policy: bypass
|
policy: bypass
|
||||||
resources:
|
resources:
|
||||||
- '^/api$'
|
- '^/api$'
|
||||||
|
|||||||
30
services/notifiarr/docker-compose.yml
Normal file
30
services/notifiarr/docker-compose.yml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
name: Notifiarr
|
||||||
|
|
||||||
|
services:
|
||||||
|
notifiarr:
|
||||||
|
hostname: notifiarr
|
||||||
|
image: golift/notifiarr
|
||||||
|
environment:
|
||||||
|
PUID: ${NASCOMPOSE_UID?}
|
||||||
|
PGID: ${NASCOMPOSE_GID?}
|
||||||
|
DN_UI_PASSWORD: webauth
|
||||||
|
DN_MODE: ${NASCOMPOSE_NOTIFIARR_MODE?}
|
||||||
|
networks:
|
||||||
|
- reverse-proxy
|
||||||
|
volumes:
|
||||||
|
- notifiarr_config:/config/
|
||||||
|
restart: unless-stopped
|
||||||
|
labels:
|
||||||
|
traefik.enable: true
|
||||||
|
traefik.http.routers.notifiarr.middlewares: authelia@file, notifiarr-authelia@file
|
||||||
|
|
||||||
|
networks:
|
||||||
|
reverse-proxy:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
notifiarr_config:
|
||||||
|
driver_opts:
|
||||||
|
type: none
|
||||||
|
o: bind
|
||||||
|
device: ${NASCOMPOSE_SERVICES?}/notifiarr/volumes/notifiarr_config/
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
http:
|
||||||
|
middlewares:
|
||||||
|
notifiarr-authelia:
|
||||||
|
plugin:
|
||||||
|
htransformation:
|
||||||
|
Rules:
|
||||||
|
- Type: Rename
|
||||||
|
Header: Remote-User
|
||||||
|
Value: X-WebAuth-User
|
||||||
@@ -30,3 +30,9 @@ entryPoints:
|
|||||||
|
|
||||||
global:
|
global:
|
||||||
sendAnonymousUsage: false
|
sendAnonymousUsage: false
|
||||||
|
|
||||||
|
experimental:
|
||||||
|
plugins:
|
||||||
|
htransformation:
|
||||||
|
moduleName: github.com/tomMoulard/htransformation
|
||||||
|
version: v0.2.7
|
||||||
|
|||||||
@@ -19,6 +19,8 @@ services:
|
|||||||
target: /etc/traefik/dynamic/tls.yml
|
target: /etc/traefik/dynamic/tls.yml
|
||||||
- source: traefik_hsts
|
- source: traefik_hsts
|
||||||
target: /etc/traefik/dynamic/hsts.yml
|
target: /etc/traefik/dynamic/hsts.yml
|
||||||
|
- source: traefik_htransformation
|
||||||
|
target: /etc/traefik/dynamic/htransformation.yml
|
||||||
|
|
||||||
- source: traefik_authelia
|
- source: traefik_authelia
|
||||||
target: /etc/traefik/dynamic/authelia.yml
|
target: /etc/traefik/dynamic/authelia.yml
|
||||||
@@ -49,6 +51,8 @@ configs:
|
|||||||
file: ${NASCOMPOSE_SERVICES?}/reverse-proxy/configs/dynamic/tls.yml
|
file: ${NASCOMPOSE_SERVICES?}/reverse-proxy/configs/dynamic/tls.yml
|
||||||
traefik_hsts:
|
traefik_hsts:
|
||||||
file: ${NASCOMPOSE_SERVICES?}/reverse-proxy/configs/dynamic/hsts.yml
|
file: ${NASCOMPOSE_SERVICES?}/reverse-proxy/configs/dynamic/hsts.yml
|
||||||
|
traefik_htransformation:
|
||||||
|
file: ${NASCOMPOSE_SERVICES?}/reverse-proxy/configs/dynamic/htransformation.yml
|
||||||
traefik_authelia:
|
traefik_authelia:
|
||||||
file: ${NASCOMPOSE_SERVICES?}/reverse-proxy/configs/dynamic/authelia.yml
|
file: ${NASCOMPOSE_SERVICES?}/reverse-proxy/configs/dynamic/authelia.yml
|
||||||
traefik_transmission-api:
|
traefik_transmission-api:
|
||||||
|
|||||||
Reference in New Issue
Block a user