-
Notifications
You must be signed in to change notification settings - Fork 327
/
Copy pathconfig.yml_example_nextcloud
37 lines (32 loc) · 1.25 KB
/
config.yml_example_nextcloud
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Vouch Proxy configuration
# bare minimum to get Vouch Proxy running with Nextcloud Authentication
vouch:
# domains:
# valid domains that the jwt cookies can be set into
# the callback_urls will be to these domains
domains:
- yourdomain.com
- yourotherdomain.com
# - OR -
# instead of setting specific domains you may prefer to allow all users...
# set allowAllUsers: true to use Vouch Proxy to just accept anyone who can authenticate at the configured provider
# allowAllUsers: true
cookie:
# allow the jwt/cookie to be set into http://yourdomain.com (defaults to true, requiring https://yourdomain.com)
secure: false
# vouch.cookie.domain must be set when enabling allowAllUsers
# domain: yourdomain.com
oauth:
# This assumes usage of pretty URLs otherwise add /index.php/
# to start of URL path
provider: nextcloud
client_id: xxxxxxxxxxxxxxxxxxxxxxxxxxxx
client_secret: xxxxxxxxxxxxxxxxxxxxxxxx
auth_url: https://nextcloud.yourdomain.com/apps/oauth2/authorize
token_url: https://nextcloud.yourdomain.com/apps/oauth2/api/v1/token
user_info_url: https://nextcloud.yourdomain.com/ocs/v2.php/cloud/user?format=json
scopes:
- openid
- email
- profile
callback_url: http://vouch.yourdomain.com:9090/auth