-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.py
More file actions
34 lines (24 loc) · 907 Bytes
/
Copy pathconstants.py
File metadata and controls
34 lines (24 loc) · 907 Bytes
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
DEFAULT_APP_NAME = "Python API"
DEFAULT_VERSION = "1.0.0"
DEFAULT_DEBUG = False
DEFAULT_API_HOST = "0.0.0.0"
DEFAULT_API_PORT = 8000
DEFAULT_WORKERS = 1
DEFAULT_REDIS_URL = "redis://localhost:6379"
DEFAULT_REDIS_POOL_SIZE = 10
DEFAULT_REDIS_KEY_PREFIX = "price"
DEFAULT_JWT_SECRET_KEY = "change_me"
DEFAULT_JWT_ALGORITHM = "HS256"
DEFAULT_JWT_ACCESS_TOKEN_EXPIRE_HOURS = 24
DEFAULT_PASSWORD_HASH_ROUNDS = 12
DEFAULT_RATE_LIMIT_ENABLED = True
DEFAULT_RATE_LIMIT_REQUESTS_PER_MINUTE = 60
DEFAULT_RATE_LIMIT_BURST = 10
DEFAULT_GRPC_ENABLED = False
DEFAULT_GRPC_PORT = 50051
DEFAULT_CORS_ORIGINS: list[str] = ["http://localhost:3000", "http://localhost:5173"]
DEFAULT_OTEL_ENABLED = False
DEFAULT_OTEL_ENDPOINT = "http://localhost:4317"
DEFAULT_OTEL_SERVICE_NAME = "python-api"
DEFAULT_DATABASE_URL = "postgresql+asyncpg://hyperliquid:hyperliquid@localhost:5432/hyperliquid"
API_V1_PREFIX = "/api/v1"