Skip to content

Commit

Permalink
Remove hardcoded secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
dhrumilp12 committed May 6, 2024
1 parent 09603c9 commit ced6df8
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions config.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import os
from dotenv import load_dotenv

# Load environment variables from .env file
load_dotenv()

settings = {
'host': os.environ.get('ACCOUNT_HOST'),
'master_key': os.environ.get('ACCOUNT_KEY'),
'database_id': os.environ.get('COSMOS_DATABASE'),
'container_id': os.environ.get('COSMOS_CONTAINER'),
'host': os.environ.get('ACCOUNT_HOST', 'https://mental-health-companin.documents.azure.com:443/'),
'master_key': os.environ.get('ACCOUNT_KEY', '9tQkmzrDhtdagZDQ2YyPIuYUs1KAyEvqdKdDeIl0ypZbNY75j0i8KtOvIbgxdltSsM9YT9IK8z2qACDbK1wEOQ=='),
'database_id': os.environ.get('COSMOS_DATABASE', 'ToDoList'),
'container_id': os.environ.get('COSMOS_CONTAINER', 'Items'),
}

0 comments on commit ced6df8

Please sign in to comment.