2024-06-28 17:44:51 +02:00
|
|
|
proxy:
|
|
|
|
from: ["*"]
|
|
|
|
to: ""
|
|
|
|
layers:
|
|
|
|
basic-auth:
|
|
|
|
type: authn-basic
|
|
|
|
enabled: true
|
|
|
|
options:
|
|
|
|
users:
|
|
|
|
- username: foo
|
|
|
|
passwordHash: "$2y$10$ShTc856wMB8PCxyr46qJRO8z06MpV4UejAVRDJ/bixhu0XTGn7Giy"
|
|
|
|
attributes:
|
|
|
|
email: foo@bar.com
|
|
|
|
rules:
|
2024-09-24 15:46:42 +02:00
|
|
|
- set_header(ctx, "Remote-User-Attr-Email", vars.user.attrs.email)
|
2024-06-28 17:44:51 +02:00
|
|
|
fetch:
|
|
|
|
url:
|
|
|
|
user:
|
|
|
|
username: foo
|
|
|
|
password: bar
|