Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Leinfelder committed Oct 13, 2020
1 parent f095070 commit 2c14ade
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ INSTALLED_APPS = [
'django_python3_ldap',
'django.contrib.sites',
'corsheaders',
'oauth2_provider',
'allauth',
'allauth.account',
Expand All @@ -37,7 +38,15 @@ OAUTH2_PROVIDER_APPLICATION_MODEL = 'oauth2_provider.Application'

cors for web apps:
```
CORS_ALLOW_ALL_ORIGINS = True
MIDDLEWARE = (
# ...
'corsheaders.middleware.CorsMiddleware',
# ...
)
CORS_ORIGIN_ALLOW_ALL = True
// now limit the allow all to the following path:
CORS_URLS_REGEX = r"^/oauth2/.*$"
```
Expand Down Expand Up @@ -66,6 +75,16 @@ DEFAULT_FROM_EMAIL = 'name <[email protected]>'
```

(recommended) cleanup old token
```
CELERY_BEAT_SCHEDULE = {
'cleanup_token': {
'task': 'janus.cleanup_token',
'schedule': crontab(minute='1', hour='6')
},
}
```

(optional) setup your ldap server
```
# The URL of the LDAP server.
Expand Down

0 comments on commit 2c14ade

Please sign in to comment.