mirror of https://github.com/vouch/vouch-proxy
30 lines
1.0 KiB
Plaintext
30 lines
1.0 KiB
Plaintext
|
|
# Vouch Proxy configuration
|
|
# bare minimum to get Vouch Proxy running with Gitea
|
|
|
|
vouch:
|
|
domains:
|
|
- yourdomain.com
|
|
|
|
# set allowAllUsers: true to use Vouch Proxy to just accept anyone who can authenticate at Gitea
|
|
# 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:
|
|
# replace "gitea.yourdomain.com" with the domain your Gitea instance runs on
|
|
# create a new OAuth application at:
|
|
# https://gitea.yourdomain.com/user/settings/applications
|
|
provider: github
|
|
client_id: xxxxxxxxxxxxxxxxxxxx
|
|
client_secret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
auth_url: https://gitea.yourdomain.com/login/oauth/authorize
|
|
token_url: https://gitea.yourdomain.com/login/oauth/access_token
|
|
user_info_url: https://gitea.yourdomain.com/api/v1/user?token=
|
|
callback_url: https://yourdomain.com/auth
|