Move ldap config to secrets
This commit is contained in:
parent
6e893afd90
commit
2a08c3d251
2 changed files with 21 additions and 18 deletions
|
@ -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")
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue