Hammad712 commited on
Commit
8c59b30
Β·
1 Parent(s): 65c604f

update config

Browse files
Files changed (1) hide show
  1. app/page_speed/config.py +2 -1
app/page_speed/config.py CHANGED
@@ -1,3 +1,4 @@
 
1
  from pydantic_settings import BaseSettings, SettingsConfigDict
2
  from urllib.parse import quote_plus
3
 
@@ -44,7 +45,7 @@ class Settings(BaseSettings):
44
  # FastAPI Server Configuration
45
  # ───────────────────────────────────────────────────────────────────────────
46
  host: str = "0.0.0.0"
47
- port: int = 8000
48
  debug: bool = False
49
 
50
  # ───────────────────────────────────────────────────────────────────────────
 
1
+ import os
2
  from pydantic_settings import BaseSettings, SettingsConfigDict
3
  from urllib.parse import quote_plus
4
 
 
45
  # FastAPI Server Configuration
46
  # ───────────────────────────────────────────────────────────────────────────
47
  host: str = "0.0.0.0"
48
+ port: int = int(os.getenv("PORT", 8080))
49
  debug: bool = False
50
 
51
  # ───────────────────────────────────────────────────────────────────────────