mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-11 12:46:49 +00:00
phusion/baseimage brought sshd, syslog-ng, my_init and runit's per service scripts, and an nginx log forwarder tailing a file. The image is now ubuntu:26.04 with Ubuntu's supervisor: conf/docker holds the start script (settings, secret key, ownership, migrations as www-data), one supervisord.conf for the six processes, nginx's config with errors to docker logs, the backup's cron line and the health check. A stop signals every process at once, so the worker keeps its 60 s drain within the 95 s grace. The same volumes and container name work as before; README runs commands with exec -u www-data in place of /sbin/setuser. The image goes from 805 MB to 642 MB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
18 lines
415 B
Nginx Configuration File
18 lines
415 B
Nginx Configuration File
# nginx of the container: the panel's site (conf/nginx/webvirtcloud.conf),
|
|
# errors to docker logs; gunicorn logs the requests.
|
|
user www-data;
|
|
worker_processes 1;
|
|
pid /run/nginx.pid;
|
|
error_log /dev/stderr warn;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
sendfile on;
|
|
access_log off;
|
|
include /etc/nginx/conf.d/*.conf;
|
|
}
|