Commit ab579640 by Bodor Máté

Create CONNECTION dict with environment variable

parent 7be53d02
......@@ -157,3 +157,17 @@ LEASE_TYPES = [
# CORS config for development version only
CORS_ORIGIN_WHITELIST = ("http://localhost:3000",)
CONNECTION = {
"auth_url": os.getenv("OS_AUTH_URL"),
"project_id": os.getenv("OS_PROJECT_ID"),
"project_name": os.getenv("OS_PROJECT_NAME"),
"user_domain_name": os.getenv("OS_USER_DOMAIN_NAME", "Default"),
"user_domain_id": os.getenv("OS_USER_DOMAIN_ID", "default"),
"project_domain_id": os.getenv("OS_PROJECT_DOMAIN_ID", "default"),
"username": os.getenv("OS_USERNAME"),
"password": os.getenv("OS_PASSWORD"),
"region_name": os.getenv("OS_REGION_NAME"),
"interface": os.getenv("OS_INTERFACE"),
"identity_api_version": os.getenv("OS_IDENTITY_API_VERSION"),
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment