2025-02-21 19:13:41 -05:00
|
|
|
http://localhost:8001 {
|
|
|
|
forward_auth http://localhost:8080 {
|
|
|
|
uri /auth
|
2025-02-21 20:10:07 -05:00
|
|
|
|
|
|
|
header_up X-Forwarded-Content-Length {header.content-length}
|
|
|
|
|
|
|
|
copy_headers Remote-User
|
2025-02-21 19:13:41 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
templates
|
|
|
|
respond `Hello, {{.Req.Header.Get "Remote-User"}}`
|
|
|
|
}
|