diff --git a/frontend/config.py b/frontend/config.py new file mode 100644 index 0000000000000000000000000000000000000000..2005a9e3c6319e6f83e43b3482bcaffeaffe3f03 --- /dev/null +++ b/frontend/config.py @@ -0,0 +1,21 @@ +import os +from dotenv import load_dotenv + +dotenv_path = os.path.join(os.path.dirname(__file__), '.env') +if os.path.exists(dotenv_path): + load_dotenv(dotenv_path) + +class Config: + SECRET_KEY = "3834j2724827" + +class DevelopmentConfig(Config): + ENV = "development" + DEBUG = True + POST_SERVICE = "localhost:5002" + USER_SERVICE = "localhost:5001" + +class ProductionConfig(Config): + ENV = "Production" + DEBUG = True + POST_SERVICE = "post-service:5002" + USER_SERVICE = "user-service:5001" \ No newline at end of file