fix alpha config example

This commit is contained in:
tuunit 2025-02-09 19:29:06 +01:00 committed by Jan Larwig
parent 37019fc4cc
commit 8b3451a155
No known key found for this signature in database
GPG Key ID: C2172BFA220A037A
2 changed files with 30 additions and 23 deletions

View File

@ -1,5 +1,4 @@
http_address="0.0.0.0:4180"
cookie_secret="OQINaROshtE9TcZkNAm-5Zs2Pv3xaWytBmc5W7sPX7w=" cookie_secret="OQINaROshtE9TcZkNAm-5Zs2Pv3xaWytBmc5W7sPX7w="
email_domains="example.com" email_domains="example.com"
cookie_secure="false" cookie_secure="false"
redirect_url="http://localhost:4180/oauth2/callback" redirect_url="http://oauth2-proxy.localtest.me:4180/oauth2/callback"

View File

@ -1,23 +1,31 @@
upstreams: server:
- id: httpbin bindAddress: "0.0.0.0:4180"
path: / upstreamConfig:
uri: http://httpbin upstreams:
- id: httpbin
path: /
uri: http://httpbin.localtest.me:8080
injectRequestHeaders: injectRequestHeaders:
- name: X-Forwarded-Groups - name: X-Forwarded-Groups
values: values:
- claim: groups - claimSource:
- name: X-Forwarded-User claim: groups
values: - name: X-Forwarded-User
- claim: user values:
- name: X-Forwarded-Email - claimSource:
values: claim: user
- claim: email - name: X-Forwarded-Email
- name: X-Forwarded-Preferred-Username values:
values: - claimSource:
- claim: preferred_username claim: email
- name: X-Forwarded-Preferred-Username
values:
- claimSource:
claim: preferred_username
providers: providers:
- provider: oidc - id: oidc
clientSecret: b2F1dGgyLXByb3h5LWNsaWVudC1zZWNyZXQK provider: oidc
clientID: oauth2-proxy clientSecret: b2F1dGgyLXByb3h5LWNsaWVudC1zZWNyZXQK
oidcConfig: clientID: oauth2-proxy
issuerURL: http://dex.localhost:5556/dex oidcConfig:
issuerURL: http://dex.localhost:5556/dex