Skip to content

Commit 3457450

Browse files
committed
Update Caddyfile to adding Proxy-Authorization to enable QGIS basic auth
1 parent 56d3f4d commit 3457450

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

caddy/Caddyfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ app.pygeoapi.local {
88
forward_auth authelia:9091 {
99
uri /api/authz/forward-auth?authelia_url=https://pygeoapi.local/
1010
copy_headers Remote-User Remote-Groups Remote-Name Remote-Email
11+
header_up X-Forwarded-Method {method}
12+
header_up X-Forwarded-URI {uri}
13+
header_up Proxy-Authorization {http.request.header.Authorization}
1114
}
1215
reverse_proxy pygeoapi:80
1316
}

0 commit comments

Comments
 (0)