Files
CmdForge/gunicorn.conf.py
T
robandClaude Opus 4.5 62f06813a4 Add full ToolSource support to registry
- Add source_json column to store complete source attribution
- Update publish API to accept source object or legacy string
- Update get_tool API to return parsed source object
- Update web UI to display type, author, license, url, original_tool
- Add gunicorn config and dependency for production server

Co-Authored-By: Claude Opus 4.5 <[email protected]>
2026-01-13 02:43:09 -04:00

36 lines
685 B
Python

"""Gunicorn configuration for CmdForge web service."""
import os
# Server socket
bind = "0.0.0.0:" + os.environ.get("PORT", "5050")
backlog = 2048
# Worker processes
workers = 2 # Conservative for shared server
worker_class = "sync"
worker_connections = 1000
timeout = 120
keepalive = 2
# Process naming
proc_name = "cmdforge-web"
# Logging
accesslog = "-" # stdout
errorlog = "-" # stderr
loglevel = "info"
access_log_format = '%(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"'
# Server mechanics
daemon = False
pidfile = None
umask = 0
user = None
group = None
tmp_upload_dir = None
# SSL (handled by Cloudflare, not needed here)
keyfile = None
certfile = None