Trying to get simpleauth working

This commit is contained in:
Neale Pickett 2022-09-07 21:47:37 -06:00
parent 269ac3dcb4
commit 36041dbd70
2 changed files with 17 additions and 3 deletions

View File

@ -8,8 +8,9 @@
import /run/secrets/caddy-users
(restricted-access) {
basicauth {
import home-users
forward_auth simpleauth:8080 {
uri /
copy_headers Set-Cookie
}
}

View File

@ -27,6 +27,16 @@ services:
extra_hosts:
- host.docker.internal:host-gateway
simpleauth:
image: ghcr.io/nealey/simpleauth
volumes:
- type: bind
source: /home/neale/src/simpleauth/static
target: /static
read_only: true
secrets:
- passwd
plex:
image: ghcr.io/linuxserver/plex
networks:
@ -141,7 +151,7 @@ configs:
name: dave.yaml-v3
Caddyfile:
file: Caddyfile
name: Caddyfile-v24
name: Caddyfile-v27
index.html:
file: index.html
name: index.html-v12
@ -150,6 +160,9 @@ secrets:
caddy-users:
file: secrets/caddy-users
name: caddy-users-v2
passwd:
file: secrets/passwd
name: passwd-v1
networks:
hostnet: