Provide user info in Remote-* headers. Caddy configuration improved.
This commit is contained in:
6
caddy/auth/setup
Normal file
6
caddy/auth/setup
Normal file
@@ -0,0 +1,6 @@
|
||||
# Setup auth service at /auth/ and remove any Remote-* headers sent by client (for security)
|
||||
header -Remote-*
|
||||
@auth_api path /auth /auth/*
|
||||
handle @auth_api {
|
||||
reverse_proxy {$AUTH_UPSTREAM:localhost:4401}
|
||||
}
|
||||
Reference in New Issue
Block a user