Skip to content

Commit 15e70a6

Browse files
Merge pull request #114 from zethis/feature/add-extraArgs-documentation
add config.configFile documentation
2 parents 1483b29 + f49870b commit 15e70a6

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

helm/oauth2-proxy/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: oauth2-proxy
2-
version: 6.7.0
2+
version: 6.7.1
33
apiVersion: v2
44
appVersion: 7.4.0
55
home: https://oauth2-proxy.github.io/oauth2-proxy/

helm/oauth2-proxy/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,4 +296,24 @@ extraObjects:
296296
</body>
297297
</html>
298298
```
299+
## Multi whitelist-domain configuration
300+
For using multi whitelist-domain configuration for one Oauth2-proxy instance, you have to use the config.configFile section.
299301

302+
It will be overwriting the `/etc/oauth2_proxy/oauth2_proxy.cfg` configuration file.
303+
In this example, Google provider is used, but you can find all other provider configuration here [oauth_provider](https://oauth2-proxy.github.io/oauth2-proxy/docs/configuration/oauth_provider/)
304+
305+
```yaml
306+
config:
307+
...
308+
clientID="$YOUR_GOOGLE_CLIENT_ID"
309+
clientSecret="$YOUR_GOOGLE_CLIENT_SECRET"
310+
cookieSecret="$YOUR_COOKIE_SECRET"
311+
configFile: |
312+
...
313+
email_domains = [ "*" ]
314+
upstreams = [ "file:///dev/null" ]
315+
cookie_secure = "false"
316+
cookie_domains = [ ".domain.com", ".otherdomain.io" ]
317+
whitelist_domains = [ ".domain.com", ".otherdomain.io"]
318+
provider = "google"
319+
```

0 commit comments

Comments
 (0)