mirror of
https://github.com/9001/copyparty.git
synced 2026-01-12 15:52:39 -07:00
29 lines
900 B
Caddyfile
29 lines
900 B
Caddyfile
fs.example.com {
|
|
tls internal # needed if you don't have an actual domain and use local dns in your network
|
|
forward_auth authelia:9091 {
|
|
uri /api/authz/forward-auth
|
|
copy_headers Remote-User Remote-Groups Remote-Email Remote-Name
|
|
}
|
|
|
|
route {
|
|
@login query rd=*
|
|
redir @login https://authelia.example.com{uri}
|
|
|
|
@logout path /logout
|
|
redir @logout https://authelia.example.com{uri}
|
|
|
|
reverse_proxy copyparty:3923 {
|
|
header_up Cookie "authelia_session=[^;]+" "authelia_session=_"
|
|
}
|
|
}
|
|
}
|
|
|
|
# fs.example.com {
|
|
# tls internal # needed if you don't have an actual domain and use local dns in your network
|
|
# reverse_proxy copyparty:3923
|
|
# }
|
|
|
|
authelia.example.com {
|
|
tls internal # needed if you don't have an actual domain and use local dns in your network
|
|
reverse_proxy authelia:9091
|
|
} |