update config
Browse files- 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 =
|
| 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 |
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|