Fix gunicorn config for Docker and Linux

This commit is contained in:
Théophile Diot 2023-06-01 10:23:03 -04:00
parent 0c8bc97fae
commit d1138855ee
No known key found for this signature in database
GPG Key ID: E752C80DB72BB014
2 changed files with 1 additions and 4 deletions

View File

@ -15,7 +15,7 @@ start() {
echo "Starting UI"
source /etc/bunkerweb/ui.env
export $(cat /etc/bunkerweb/ui.env)
python3 -m gunicorn --config /usr/share/bunkerweb/ui/gunicorn.conf.py &
python3 -m gunicorn --config /usr/share/bunkerweb/ui/gunicorn.conf.py --user nginx --group nginx --bind 127.0.0.1:7000 &
echo $! > /var/run/bunkerweb/ui.pid
}

View File

@ -10,8 +10,6 @@ access_log_format = (
errorlog = "-"
preload_app = True
pidfile = join(sep, "var", "run", "bunkerweb", "ui.pid")
user = "nginx"
group = "nginx"
secure_scheme_headers = {
"X-FORWARDED-PROTOCOL": "https",
"X-FORWARDED-PROTO": "https",
@ -19,6 +17,5 @@ secure_scheme_headers = {
}
forwarded_allow_ips = "*"
proxy_allow_ips = "*"
bind = ["127.0.0.1:7000"]
worker_class = "gevent"
graceful_timeout = 0