-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy pathexample_settings.py
68 lines (54 loc) · 1.93 KB
/
example_settings.py
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# SECURITY WARNING: keep the secret key used in production secret!
# You should change this key before you go live!
SECRET_KEY = 'uxprsdhk^gzd-r=_287byolxn)$k6tsd8_cepl^s^tms2w1qrv'
# This is the default redirect if no other sites are found.
DEFAULT_HOST = 'https://www.example.org'
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
LOGIN_REDIRECT_URL = '/user/profile/'
# CATCHA_TYPE should be either 'simple_math', 'recaptcha' or 'hcaptcha' to enable captcha
#fields, otherwise disabled
CAPTCHA_TYPE = 'recaptcha'
# If using recaptcha complete the following
RECAPTCHA_PRIVATE_KEY = ''
RECAPTCHA_PUBLIC_KEY = ''
# If using hcaptcha complete the following:
HCAPTCHA_SITEKEY = ''
HCAPTCHA_SECRET = ''
# ORCID Settings
ENABLE_ORCID = True
ORCID_API_URL = '' # Not needed any more. Requests are delegated to python-orcid.
ORCID_URL = 'https://orcid.org/oauth/authorize'
ORCID_TOKEN_URL = 'https://pub.orcid.org/oauth/token'
ORCID_CLIENT_SECRET = ''
ORCID_CLIENT_ID = ''
# Default Langague
LANGUAGE_CODE = 'en'
URL_CONFIG = 'path' # path or domain
DATABASES = {
'default': {
#Example ENGINEs:
# sqlite: 'django.db.backends.sqlite
# mysql: 'django.db.backends.mysql
# postgres: 'django.db.backends.postgresql
'ENGINE': 'django.db.backends.mysql',
'NAME': '',
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
'OPTIONS': {'init_command': 'SET default_storage_engine=INNODB'},
}
}
# OIDC Settings
ENABLE_OIDC = False
OIDC_SERVICE_NAME = 'OIDC Service Name'
OIDC_RP_CLIENT_ID = ''
OIDC_RP_CLIENT_SECRET = ''
OIDC_RP_SIGN_ALGO = 'RS256'
OIDC_OP_AUTHORIZATION_ENDPOINT = ""
OIDC_OP_TOKEN_ENDPOINT = ""
OIDC_OP_USER_ENDPOINT = ""
OIDC_OP_JWKS_ENDPOINT = ''
ENABLE_FULL_TEXT_SEARCH = False # Read the docs before enabling full text
# Model used for indexing full text files
CORE_FILETEXT_MODEL = "core.FileText" # Use "core.PGFileText" for Postgres