AIstudioProxyAPI / supervisord.conf
peijun1's picture
Deploy AI Studio Proxy API to Hugging Face Spaces
a5784e9
Raw
History Blame Contribute Delete
644 Bytes
# /etc/supervisor/conf.d/app.conf
[supervisord]
nodaemon=true
logfile=/dev/null
logfile_maxbytes=0
pidfile=/tmp/supervisord.pid
[program:aistudioproxy]
command=python launch_camoufox.py --headless --server-port %(ENV_SERVER_PORT)s --stream-port %(ENV_STREAM_PORT)s --internal-camoufox-proxy "%(ENV_INTERNAL_CAMOUFOX_PROXY)s" --helper ''
directory=/app
autostart=true
autorestart=true
killasgroup=true
stopasgroup=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
user=appuser
environment=PYTHONUNBUFFERED="1",HOME="/app",PLAYWRIGHT_BROWSERS_PATH="/home/appuser/.cache/ms-playwright"