Move ldap config to secrets

This commit is contained in:
Tom Hubrecht 2023-01-31 20:01:42 +01:00
parent 6e893afd90
commit 2a08c3d251
2 changed files with 21 additions and 18 deletions

View file

@ -119,21 +119,5 @@ LOGOUT_REDIRECT_URL = reverse_lazy("home")
AUTHENS_USE_OLDCAS = False
AUTHENS_USE_PASSWORD = False
LDAP = {
"SPI": {
"PROTOCOL": "ldaps",
"URL": "ldap.spi.ens.fr",
"PORT": 636,
},
"CRI": {
"PROTOCOL": "ldap",
"URL": "annuaire.ens.fr",
"PORT": 389,
},
}
ANNUAIRE = {
"PROTOCOL": "http",
"URL": "annuaireweb.ens.fr",
"PORT": 80,
}
LDAP = get_secret("LDAP")
ANNUAIRE = get_secret("ANNUAIRE")

View file

@ -2,3 +2,22 @@ SECRET_KEY = "$=kp$3e=xh)*4h8(_g#lprlmve_vs9_xv9hlgse%+uk9nhc==x"
ADMINS = None
SERVER_EMAIL = "root@localhost"
EMAIL_HOST = None
LDAP = {
"SPI": {
"PROTOCOL": "ldaps",
"URL": "ldap.example.com",
"PORT": 636,
},
"CRI": {
"PROTOCOL": "ldap",
"URL": "ldap.example.com",
"PORT": 636,
},
}
ANNUAIRE = {
"PROTOCOL": "http",
"URL": "annuaire.example.com",
"PORT": 80,
}