Spaces:
Sleeping
Sleeping
Commit ·
b9abdd8
1
Parent(s): 936f0bf
deploy
Browse files- app/core/config.py +3 -3
app/core/config.py
CHANGED
|
@@ -27,7 +27,7 @@ class Settings(BaseSettings):
|
|
| 27 |
|
| 28 |
API_KEY: str = Field(default="", description="Secret key required in X-API-Key header")
|
| 29 |
|
| 30 |
-
SELF_PING_ENABLED: bool =
|
| 31 |
SELF_PING_URL: str = "https://validops-east-2-instance-2.hf.space/ping"
|
| 32 |
SELF_PING_INTERVAL_SECONDS: int = 300
|
| 33 |
HF_TOKEN: str = Field(
|
|
@@ -40,7 +40,7 @@ class Settings(BaseSettings):
|
|
| 40 |
|
| 41 |
DEFAULT_DPI: int = 200
|
| 42 |
MAX_DPI: int = 600
|
| 43 |
-
DEFAULT_FORMAT: str = "
|
| 44 |
DEFAULT_JPEG_QUALITY: int = 95
|
| 45 |
SUPPORTED_FORMATS: List[str] = ["PNG", "JPEG", "WEBP", "TIFF", "BMP"]
|
| 46 |
|
|
@@ -65,7 +65,7 @@ class Settings(BaseSettings):
|
|
| 65 |
REDIS_URL: str = Field(default="", description="Redis connection URL for rate limiting")
|
| 66 |
|
| 67 |
|
| 68 |
-
FILE_SERVICE_URL: str = Field(default="", description="External file upload service endpoint")
|
| 69 |
FILE_SERVICE_API_KEY: str = Field(default="", description="API key for external file upload service")
|
| 70 |
FILE_SERVICE_BEARER_TOKEN: str = Field(default="", description="Bearer token for external file upload service")
|
| 71 |
|
|
|
|
| 27 |
|
| 28 |
API_KEY: str = Field(default="", description="Secret key required in X-API-Key header")
|
| 29 |
|
| 30 |
+
SELF_PING_ENABLED: bool = True
|
| 31 |
SELF_PING_URL: str = "https://validops-east-2-instance-2.hf.space/ping"
|
| 32 |
SELF_PING_INTERVAL_SECONDS: int = 300
|
| 33 |
HF_TOKEN: str = Field(
|
|
|
|
| 40 |
|
| 41 |
DEFAULT_DPI: int = 200
|
| 42 |
MAX_DPI: int = 600
|
| 43 |
+
DEFAULT_FORMAT: str = "PNG"
|
| 44 |
DEFAULT_JPEG_QUALITY: int = 95
|
| 45 |
SUPPORTED_FORMATS: List[str] = ["PNG", "JPEG", "WEBP", "TIFF", "BMP"]
|
| 46 |
|
|
|
|
| 65 |
REDIS_URL: str = Field(default="", description="Redis connection URL for rate limiting")
|
| 66 |
|
| 67 |
|
| 68 |
+
FILE_SERVICE_URL: str = Field(default="https://validops-east-3-instance-2.hf.space/api/v1/files/bulk-upload", description="External file upload service endpoint")
|
| 69 |
FILE_SERVICE_API_KEY: str = Field(default="", description="API key for external file upload service")
|
| 70 |
FILE_SERVICE_BEARER_TOKEN: str = Field(default="", description="Bearer token for external file upload service")
|
| 71 |
|