mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-05 05:42:39 +02:00
feat: added richer uvicorn configuration in .env
This commit is contained in:
parent
376a7de23e
commit
587f9f4c09
2 changed files with 128 additions and 8 deletions
|
|
@ -45,3 +45,44 @@ LANGSMITH_API_KEY=lsv2_pt_.....
|
|||
LANGSMITH_PROJECT=surfsense
|
||||
|
||||
|
||||
# OPTIONAL: LiteLLM API Base
|
||||
FAST_LLM_API_BASE=""
|
||||
STRATEGIC_LLM_API_BASE=""
|
||||
LONG_CONTEXT_LLM_API_BASE=""
|
||||
TTS_SERVICE_API_BASE=""
|
||||
STT_SERVICE_API_BASE=""
|
||||
|
||||
# --- Uvicorn Server Configuration ---
|
||||
UVICORN_HOST="0.0.0.0" # Host to bind (default: 0.0.0.0)
|
||||
UVICORN_PORT=8000 # Port to bind (default: 8000)
|
||||
UVICORN_LOG_LEVEL="info" # Log level (critical, error, warning, info, debug, trace)
|
||||
|
||||
# --- Advanced Uvicorn Options (uncomment to use) ---
|
||||
# UVICORN_PROXY_HEADERS=false # Enable proxy headers (true/false)
|
||||
# UVICORN_FORWARDED_ALLOW_IPS="127.0.0.1" # Comma-separated list of IPs to trust with proxy headers
|
||||
# UVICORN_WORKERS=1 # Number of worker processes
|
||||
# UVICORN_ACCESS_LOG=true # Access log (true/false)
|
||||
# UVICORN_LOOP="auto" # Event loop implementation (auto, asyncio, uvloop)
|
||||
# UVICORN_HTTP="auto" # HTTP protocol implementation (auto, h11, httptools)
|
||||
# UVICORN_WS="auto" # WebSocket protocol implementation (auto, none, websockets, wsproto)
|
||||
# UVICORN_LIFESPAN="auto" # Lifespan implementation (auto, on, off)
|
||||
# UVICORN_ENV_FILE=".env" # Environment configuration file
|
||||
# UVICORN_LOG_CONFIG="" # Logging configuration file (YAML/JSON/dict)
|
||||
# UVICORN_SERVER_HEADER=true # Enable server header (true/false)
|
||||
# UVICORN_DATE_HEADER=true # Enable date header (true/false)
|
||||
# UVICORN_LIMIT_CONCURRENCY= # Maximum number of concurrent connections or tasks
|
||||
# UVICORN_LIMIT_MAX_REQUESTS= # Maximum number of requests a worker will process before restarting
|
||||
# UVICORN_TIMEOUT_KEEP_ALIVE=5 # Timeout for keep-alive connections (seconds)
|
||||
# UVICORN_TIMEOUT_NOTIFY=30 # Timeout for graceful shutdown (seconds)
|
||||
# UVICORN_SSL_KEYFILE="" # SSL key file (path)
|
||||
# UVICORN_SSL_CERTFILE="" # SSL certificate file (path)
|
||||
# UVICORN_SSL_KEYFILE_PASSWORD="" # SSL key file password
|
||||
# UVICORN_SSL_VERSION="" # SSL version to use
|
||||
# UVICORN_SSL_CERT_REQS="" # Whether client certificate is required (none, optional, required)
|
||||
# UVICORN_SSL_CA_CERTS="" # CA certificates file
|
||||
# UVICORN_SSL_CIPHERS="" # Ciphers to use
|
||||
# UVICORN_HEADERS="" # List of custom default HTTP response headers (comma-separated, e.g. X-Frame-Options:DENY,X-Content-Type-Options:nosniff)
|
||||
# UVICORN_USE_COLORS=true # Enable colorized logging output (true/false)
|
||||
# UVICORN_UDS="" # Bind to a UNIX domain socket (overrides host/port)
|
||||
# UVICORN_FD="" # Bind to socket from this file descriptor
|
||||
# UVICORN_ROOT_PATH="" # Root path for ASGI applications submounted below a given URL path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue