Simplified Caddy snippets (removed auth/all).

This commit is contained in:
2025-09-29 08:00:19 +00:00
parent 48f718191f
commit 2d2e4e899d
3 changed files with 5 additions and 21 deletions
-6
View File
@@ -1,6 +0,0 @@
# Enable auth site at /auth (setup) and require authentication on all paths
import setup
handle {
import require {args[0]}
{block}
}
+4 -2
View File
@@ -1,5 +1,7 @@
# Permission to use within your endpoints that need authentication/authorization, that
# is different depending on the route (otherwise use auth/all).
# Permission to use within your endpoints that need authentication/authorization
# Argument is mandatory and provides a query string to /auth/api/forward
# "" means just authentication
# perm=yourservice:login to require specific permission
forward_auth {$AUTH_UPSTREAM:localhost:4401} {
uri /auth/api/forward?{args[0]}
header_up Connection keep-alive # Much higher performance