-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py
37 lines (32 loc) · 1.24 KB
/
config.py
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
34
35
36
37
import os
from dataclasses import dataclass
try:
from dotenv import load_dotenv
load_dotenv(".env")
except ModuleNotFoundError:
pass
@dataclass
class Config:
ENVIRONMENT = os.getenv("ENVIRONMENT")
ACCESS_KEY_ID = os.getenv("ACC_K_ID")
SECRET_ACCESS_KEY = os.getenv("ASC_KY")
DATA_DUMP_BUCKET = os.getenv("DATA_DUMP_BUCKET")
NFT_MINT_DUMP_BUCKET = os.getenv("NFT_MINT_DUMP_BUCKET")
CACHE_FAILED_LOG_BUCKET = os.getenv("CACHE_FAILED_LOG_BUCKET")
BITHOMP_TOKEN = os.getenv("BITHOMP_TOKEN")
GOOGLE_ANALYTICS_BASE_URL = os.getenv("GOOGLE_ANALYTICS_BASE_URL")
GOOGLE_ANALYTICS_MEASUREMENT_ID = os.getenv("GOOGLE_ANALYTICS_MEASUREMENT_ID")
GOOGLE_ANALYTICS_SECRET_KEY = os.getenv("GOOGLE_ANALYTICS_SECRET_KEY")
GOOGLE_ANALYTICS_CLIENT_ID = os.getenv("GOOGLE_ANALYTICS_CLIENT_ID")
MIXPANEL_PROJECT_TOKEN = os.getenv("MIXPANEL_PROJECT_TOKEN")
DB_HOST = os.getenv("DB_HOST")
RDS_PASSWORD = os.getenv("DB_PASSWORD")
RDS_USER = os.getenv("DB_USER")
RDS_PORT = os.getenv("DB_PORT")
DB_NAME = os.getenv("DB_NAME")
IPFS_HOSTS = [
"https://nftstorage.link/ipfs",
"https://gateway.pinata.cloud/ipfs",
"https://cloudflare-ipfs.com/ipfs",
"https://dweb.link/ipfs",
]