Minor tuning of Caddy configuration and improved documentation.
This commit is contained in:
@@ -8,7 +8,8 @@ localhost {
|
||||
# Public paths (no auth)
|
||||
@public path /favicon.ico /.well-known/*
|
||||
handle @public {
|
||||
reverse_proxy :3000
|
||||
root * /var/www/
|
||||
file_server
|
||||
}
|
||||
# Respond with user's display name
|
||||
handle_path /hello {
|
||||
|
||||
@@ -11,7 +11,6 @@ forward_auth {$AUTH_UPSTREAM:localhost:4401} {
|
||||
Remote-Role
|
||||
Remote-Role-Name
|
||||
Remote-Session-Expires
|
||||
Remote-Session-Type
|
||||
Remote-Credential
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
header -Remote-*
|
||||
@auth_api path /auth /auth/*
|
||||
handle @auth_api {
|
||||
reverse_proxy {$AUTH_UPSTREAM:localhost:4401}
|
||||
reverse_proxy {$AUTH_UPSTREAM::4401}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user