forked from finallycoffee/self-service-api
feat: move to external config
This commit is contained in:
parent
c9b82bfe81
commit
89672b1306
2
config.py
Normal file
2
config.py
Normal file
@ -0,0 +1,2 @@
|
||||
LDAP_URI = "ldap://127.0.0.1:389"
|
||||
LDAP_BASE_DN = "ou=accounts,dc=example,dc=org"
|
@ -4,8 +4,7 @@ from fastapi import FastAPI, HTTPException, Response
|
||||
from pydantic import BaseModel
|
||||
from ldap import modlist
|
||||
|
||||
LDAP_URI = "ldap://10.42.0.1:389"
|
||||
LDAP_BASE_DN = "ou=users,dc=finallycoffee,dc=eu"
|
||||
from config import LDAP_URI, LDAP_BASE_DN
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user