45 lines
1.3 KiB
Plaintext
45 lines
1.3 KiB
Plaintext
#import os
|
|
#os.environ['HTTPS_PROXY'] = 'http://squid:3128'
|
|
#os.environ['HTTP_PROXY'] = 'http://squid:3128'
|
|
|
|
DATABASES = {
|
|
"default": {
|
|
"ENGINE": "django.contrib.gis.db.backends.postgis",
|
|
"NAME": "umap",
|
|
"USER": "umap",
|
|
"HOST": "postgresql",
|
|
"PORT": 5432,
|
|
"PASSWORD": "password",
|
|
}
|
|
}
|
|
|
|
|
|
SECRET_KEY="secret"
|
|
SITE_URL = "https://umap.domaine.com/"
|
|
ALLOWED_HOSTS = ["umap.domaine.com"]
|
|
|
|
#UMAP_ALLOW_ANONYMOUS=True
|
|
DEBUG=True
|
|
|
|
SESSION_COOKIE_SECURE = True
|
|
CSRF_COOKIE_SECURE = True
|
|
CSRF_TRUSTED_ORIGINS=["https://umap.domaine.com/"]
|
|
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
|
|
SECURE_SSL_REDIRECT = True
|
|
|
|
|
|
AUTHENTICATION_BACKENDS = (
|
|
'social_core.backends.keycloak.KeycloakOAuth2',
|
|
"django.contrib.auth.backends.ModelBackend",
|
|
)
|
|
|
|
#SOCIAL_AUTH_KEYCLOAK_KEY = ''
|
|
#SOCIAL_AUTH_KEYCLOAK_SECRET = ''
|
|
#SOCIAL_AUTH_KEYCLOAK_PUBLIC_KEY = ''
|
|
#SOCIAL_AUTH_KEYCLOAK_ID_KEY = 'email'
|
|
#SOCIAL_AUTH_KEYCLOAK_AUTHORIZATION_URL = 'https://keycloak/realms/keycloak/protocol/openid-connect/auth'
|
|
#SOCIAL_AUTH_KEYCLOAK_ACCESS_TOKEN_URL = 'https://keycloak/realms/keycloak/protocol/openid-connect/token'
|
|
#LOGOUT_REDIRECT_URL="https://keycloak/realms/keycloak/protocol/openid-connect/logout"
|
|
#SOCIAL_AUTH_JSONFIELD_ENABLED=True
|
|
EMAIL_HOST=""
|