traefik-forward-auth
traefik-forward-auth copied to clipboard
Nextcloud configuration
Hi! I figured out how to configure nextcloud, maybe someone can add this to the wiki page?
make sure you replace nc.example.com
with your actual domain.
- DEFAULT_PROVIDER=generic-oauth
- PROVIDERS_GENERIC_OAUTH_AUTH_URL=https://nc.example.com/apps/oauth2/authorize
- PROVIDERS_GENERIC_OAUTH_TOKEN_URL=https://nc.example.com/apps/oauth2/api/v1/token
- PROVIDERS_GENERIC_OAUTH_USER_URL=https://nc.example.com/ocs/v2.php/cloud/user?format=json
- PROVIDERS_GENERIC_OAUTH_CLIENT_ID=(needs to be taken from nextcloud security settings page)
- PROVIDERS_GENERIC_OAUTH_CLIENT_SECRET=(needs to be taken from nextcloud security settings page)
A longer post can also be found here: https://help.nextcloud.com/t/nextcloud-as-oauth2-provider-for-any-traefik-forward-auth-possible/93565/3?u=amenthes
Have you managed to get this working in auth host mode? I'm trying this and it's sending me around in circles like in your forum post.