12 lines
249 B
Caddyfile
12 lines
249 B
Caddyfile
http://localhost:8001 {
|
|
forward_auth http://localhost:8080 {
|
|
uri /auth
|
|
|
|
header_up X-Forwarded-Content-Length {header.content-length}
|
|
|
|
copy_headers Remote-User
|
|
}
|
|
|
|
templates
|
|
respond `Hello, {{.Req.Header.Get "Remote-User"}}`
|
|
}
|