# ============================================================================ # mcp-linkgen — Environment Configuration # ============================================================================ # Server HOST=0.0.0.0 PORT=8000 # Workspace — directory containing files to share via download links # Leave the below line commented out to automatically mount the Turnstone workspace volume # WORKSPACE_ROOT=/workspace # Public base URL used when generating download links. # Set to your public hostname (with trailing slash path, no trailing slash). # Examples: # http://localhost:8000 (local dev) # https://linkgen.example.com (production behind TLS) PUBLIC_BASE_URL=http://localhost:8000 # Download link TTL (time-to-live) settings in minutes DOWNLOAD_DEFAULT_TTL=10 DOWNLOAD_MIN_TTL=1 DOWNLOAD_MAX_TTL=60 # CORS — Comma-separated list of allowed origins. # Use "*" to allow all origins (development default). # For production, restrict to your domain(s). # Examples: # CORS_ORIGINS=* # CORS_ORIGINS=https://myapp.com,https://admin.myapp.com CORS_ORIGINS=* # Rate limiting — per-IP sliding window (0 = disabled). MCP_RATE_LIMIT=60 # max MCP tool requests per minute per IP DOWNLOAD_RATE_LIMIT=10 # max download requests per minute per IP RATE_LIMIT_WINDOW=60 # sliding window size in seconds MCP_ENDPOINT=/mcp # MCP HTTP endpoint path (FastMCP default)