-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.py
More file actions
33 lines (27 loc) · 1.08 KB
/
config.py
File metadata and controls
33 lines (27 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Auth:
CLIENT_ID = os.environ['GOOGLE_CLIENT_ID']
CLIENT_SECRET = os.environ['GOOGLE_CLIENT_SECRET']
REDIRECT_URI = 'https://www.outfitless.com/oauth2callback'
AUTH_URI = os.environ['GOOGLE_AUTH_URI']
TOKEN_URI = os.environ['GOOGLE_TOKEN_URI']
USER_INFO = 'https://www.googleapis.com/oauth2/v1/userinfo'
SCOPES = ['https://www.googleapis.com/auth/photoslibrary.appendonly',
'https://www.googleapis.com/auth/photoslibrary.readonly.appcreateddata',
'https://www.googleapis.com/auth/userinfo.email',
'https://www.googleapis.com/auth/userinfo.profile']
class Config:
APP_NAME = "Outfitless"
SECRET_KEY = os.environ['APP_SECRET_KEY']
class DevConfig(Config):
DEBUG = True
SQLALCHEMY_DATABASE_URI = 'postgresql:///' + os.path.join(basedir, "test.db")
class ProdConfig(Config):
DEBUG = True
SQLALCHEMY_DATABASE_URI = 'postgresql:///' + os.path.join(basedir, "prod.db")
config = {
"dev": DevConfig,
"prod": ProdConfig,
"default": DevConfig
}