apiKeys:"false"# Enable API keys database for per-client rate limits when --req-limit is reached (Default: Don't use API keys)
requireApiKeyOrigin:""# Require use of an API key for programmatic access to the API, unless the request origin matches this domain (Default: No restrictions on domain origin)
requireApiKeySecret:""# Require use of an API key for programmatic access to the API, unless the client also sends a secret match (Default: No secrets required)
suggestions:"false"# Allow user suggestions (Default: Disabled)
disableWebUi:"false"# Disable web ui (Default: Web Ui enabled)
updateModels:"false"# Update language models at startup (Default: Only on if no models found)
metrics:"false"# Enable the /metrics endpoint for exporting Prometheus usage metrics (Default: Disabled)
# Configuration Parameters
appConfig:
host:"0.0.0.0"# Set host to bind the server to (Default: 127.0.0.1)
port:"5000"# Set port to bind the server to (Default: 5000)
charLimit:"null"# Set character limit (Default: No limit)
reqLimit:"null"# Set maximum number of requests per minute per client (outside of limits set by api keys) (Default: No limit)
reqLimitStorage:"memory://"# Storage URI to use for request limit data storage. See Flask Limiter (Default: memory://)
batchLimit:"null"# Set maximum number of texts to translate in a batch request (Default: No limit)
gaId:""# Enable Google Analytics on the API client page by providing an ID (Default: Empty (no tracking))
frontendLanguageSource:"auto"# Set frontend default language - source (Default: auto)
frontendLanguageTarget:"locale"# Set frontend default language - target (Default: locale (match site's locale))
frontendTimeout:"500"# Set frontend translation timeout (Default: 500)
apiKeysDbPath:"/app/db/api_keys.db"# Use a specific path inside the container for the local database. Can be absolute or relative (Default: /app/db/api_keys.db)
apiKeysDbPathMount:"/app/db"# Use a specific path inside the container for the local database. Must be the same as apiKeysDbPath (Default: /app/db)
apiKeysRemote:""# Use this remote endpoint to query for valid API keys instead of using the local database (Default: Empty (use local db instead))
getApiKeyLink:""# Show a link in the UI where to direct users to get an API key (Default: Empty (no link shown on web ui))
sharedStorage:"memory://"# Shared storage URI to use for multi-process data sharing (e.g. when using gunicorn) (Default: memory://)
loadOnly:""# Set available languages (Default: Empty (use all from argostranslate))
threads:"4"# Set number of threads (Default: 4)
metricsAuthToken:""# Protect the /metrics endpoint by allowing only clients that have a valid Authorization Bearer token (Default: Empty (no auth required))
urlPrefix:""# Add prefix to URL: example.com:5000/url-prefix/ (Default: /)