-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
16 lines (13 loc) · 974 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
SECRET_KEY = os.environ.get('SECRET_KEY') or 'secret-key'
SQL_SERVER = os.environ.get('SQL_SERVER') or 'my-pets-sql-server.database.windows.net'
SQL_DATABASE = os.environ.get('SQL_DATABASE') or 'my-pets-sql-database'
SQL_USER_NAME = os.environ.get('SQL_USER_NAME') or 'petsadmin'
SQL_PASSWORD = os.environ.get('SQL_PASSWORD') or 'Ilovemypets2022'
SQLALCHEMY_DATABASE_URI = 'mssql+pyodbc://' + SQL_USER_NAME + '@' + SQL_SERVER + ':' + SQL_PASSWORD + '@' + SQL_SERVER + ':1433/' + SQL_DATABASE + '?driver=ODBC+Driver+17+for+SQL+Server'
SQLALCHEMY_TRACK_MODIFICATIONS = False
BLOB_ACCOUNT = os.environ.get('BLOB_ACCOUNT') or 'petsstorage'
BLOB_STORAGE_KEY = os.environ.get('BLOB_STORAGE_KEY') or '7lEvNfilb2NodDP+5RJTU8GRJ49cjXfvF30bwYzoSKlbDMusPNGAOh64thQDD830sbUNPeR234xl24aAWGtb2w=='
BLOB_CONTAINER = os.environ.get('BLOB_CONTAINER') or 'images'