Configurationο
Environment variablesο
Add your environment variables in app.env file.
Generalο
- ALLOWED_HOSTSο
domains allowed to be used by your instance. Support comma separated values.
Example:
ALLOWED_HOSTS=mysite.fr # ALLOWED_HOSTS=mysite.fr,my.other.site.fr
- SECRET_KEYο
unique secret key for your instance. (https://djecrety.ir/)
Example:
SECRET_KEY=zbesj@t3_&u75&l=xk@ftg1yh4wy)i)9!z+(v$ig7*-*lkd6om
- SSL_ENABLEDο
Set true if your site is behind ssl proxy.
Example:
SSL_ENABLED=True
Default:
False
OIDC Connectο
To allow OIDC login, you should configure these settings.
- OIDC_ENABLE_LOGINο
Enable OIDC connect login.
Example:
OIDC_ENABLE_LOGIN=True
Default:
False
- OIDC_DISABLE_INTERNAL_LOGINο
Disable internal login if OIDC enabled. (direct redirection to OIDC login)
Example:
OIDC_DISABLE_INTERNAL_LOGIN=True
Default:
False
- OIDC_AUTH_SERVERο
Set your OIDC Realm URL.
Example:
OIDC_AUTH_SERVER=https://your.openid.com/realms/master
- OIDC_AUTH_CLIENT_IDο
Set your OIDC Client ID.
Example:
OIDC_AUTH_CLIENT_ID=your-client-id
- OIDC_AUTH_CLIENT_SECRETο
Set your OIDC Client secret.
Example:
OIDC_AUTH_CLIENT_SECRET=7GcKm7XiWIE6BRscGHZZku
- OIDC_AUTH_SCOPEο
Set your OIDC Client scope. Support comma separated values.
Example:
OIDC_AUTH_SCOPE=openid,email
Default:
openid
SENTRYο
- SENTRY_DSNο
Set your SENTRY_DSN to enable sentry reporting.
Example:
SENTRY_DSN=https://your.sentry/dsn
Default:
None
- SENTRY_TRACE_SAMPLE_RATEο
Specify trace sample rate for your performance tracking.
Example:
SENTRY_TRACE_SAMPLE_RATE=1.0
Default:
0.2
- SENTRY_PROFILES_SAMPLE_RATEο
Specify profiles sample rate for your performance tracking.
Example:
SENTRY_PROFILES_SAMPLE_RATE=1.0
Default:
0.2
- SENTRY_SEND_DEFAULT_PIIο
Specify if sentry enable user informations.
Example:
SENTRY_SEND_DEFAULT_PII=False
Default:
True
API Schemasο
- API_SCHEMAο
Set true if you want to expose API openapi schema. It expose /api/schema/ endpoint.
Example:
API_SCHEMA=True
Default:
False
- API_SWAGGERο
Set true if you want to expose API swagger. API_SCHEMA should be enabled. It expose /api/schema/swagger/ endpoint.
Example:
API_SWAGGER=True
Default:
False
- API_REDOCο
Set true if you want to expose API redoc. API_SCHEMA should be enabled. It expose /api/schema/redoc/ endpoint.
Example:
API_REDOC=True
Default:
False