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 import /run/secrets/caddy-users
(restricted-access) { (restricted-access) {
basicauth { forward_auth simpleauth:8080 {
import home-users uri /
copy_headers Set-Cookie
} }
} }

View File

@ -27,6 +27,16 @@ services:
extra_hosts: extra_hosts:
- host.docker.internal:host-gateway - 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: plex:
image: ghcr.io/linuxserver/plex image: ghcr.io/linuxserver/plex
networks: networks:
@ -141,7 +151,7 @@ configs:
name: dave.yaml-v3 name: dave.yaml-v3
Caddyfile: Caddyfile:
file: Caddyfile file: Caddyfile
name: Caddyfile-v24 name: Caddyfile-v27
index.html: index.html:
file: index.html file: index.html
name: index.html-v12 name: index.html-v12
@ -150,6 +160,9 @@ secrets:
caddy-users: caddy-users:
file: secrets/caddy-users file: secrets/caddy-users
name: caddy-users-v2 name: caddy-users-v2
passwd:
file: secrets/passwd
name: passwd-v1
networks: networks:
hostnet: hostnet: