proxy auth for unsecured apps
This commit is contained in:
parent
37dc3b82d9
commit
58c09ed633
2 changed files with 21 additions and 5 deletions
|
@ -6,6 +6,15 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
(proxy-auth) {
|
||||||
|
reverse_proxy /outpost.goauthentik.io/* http://authentik-server:9000
|
||||||
|
forward_auth http://authentik-server:9000 {
|
||||||
|
uri /outpost.goauthentik.io/auth/caddy
|
||||||
|
copy_headers X-Authentik-Username X-Authentik-Groups X-Authentik-Entitlements X-Authentik-Email X-Authentik-Name X-Authentik-Uid X-Authentik-Jwt X-Authentik-Meta-Jwks X-Authentik-Meta-Outpost X-Authentik-Meta-Provider X-Authentik-Meta-App X-Authentik-Meta-Version
|
||||||
|
trusted_proxies private_ranges
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
*.{$DOMAIN} {
|
*.{$DOMAIN} {
|
||||||
tls {
|
tls {
|
||||||
dns netcup {
|
dns netcup {
|
||||||
|
@ -21,7 +30,10 @@
|
||||||
|
|
||||||
@whoami host whoami.{$DOMAIN}
|
@whoami host whoami.{$DOMAIN}
|
||||||
handle @whoami {
|
handle @whoami {
|
||||||
reverse_proxy whoami:80
|
route {
|
||||||
|
import proxy-auth
|
||||||
|
reverse_proxy whoami:80
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@dashboard host dashboard.{$DOMAIN}
|
@dashboard host dashboard.{$DOMAIN}
|
||||||
|
@ -37,7 +49,10 @@
|
||||||
|
|
||||||
@zigbee2mqtt host zigbee2mqtt.{$DOMAIN}
|
@zigbee2mqtt host zigbee2mqtt.{$DOMAIN}
|
||||||
handle @zigbee2mqtt {
|
handle @zigbee2mqtt {
|
||||||
reverse_proxy zigbee2mqtt:8080
|
route {
|
||||||
|
import proxy-auth
|
||||||
|
reverse_proxy zigbee2mqtt:8080
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@jellyfin host jellyfin.{$DOMAIN}
|
@jellyfin host jellyfin.{$DOMAIN}
|
||||||
|
@ -62,7 +77,10 @@
|
||||||
|
|
||||||
@torrent host torrent.{$DOMAIN}
|
@torrent host torrent.{$DOMAIN}
|
||||||
handle @torrent {
|
handle @torrent {
|
||||||
reverse_proxy transmission:9091
|
route {
|
||||||
|
import proxy-auth
|
||||||
|
reverse_proxy transmission:9091
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@auth host auth.{$DOMAIN}
|
@auth host auth.{$DOMAIN}
|
||||||
|
|
|
@ -4,8 +4,6 @@ services:
|
||||||
image: lscr.io/linuxserver/transmission:${TRANSMISSION_VERSION}
|
image: lscr.io/linuxserver/transmission:${TRANSMISSION_VERSION}
|
||||||
environment:
|
environment:
|
||||||
- TZ=Etc/UTC
|
- TZ=Etc/UTC
|
||||||
- USER=${USERNAME}
|
|
||||||
- PASS=${PASSWORD}
|
|
||||||
volumes:
|
volumes:
|
||||||
- ${VOLUMES_PATH}/torrent/transmission:/config
|
- ${VOLUMES_PATH}/torrent/transmission:/config
|
||||||
- ${DOWNLOAD_PATH}:/downloads
|
- ${DOWNLOAD_PATH}:/downloads
|
||||||
|
|
Loading…
Add table
Reference in a new issue