My application is running jam.py v5.
It's installed on an Ubuntu VPS.
Sometimes I get the error "Server request error." Why is that?
setting gunicorn
[Unit]
Description = gunicorn daemon for vdr pusat
After = network.target
[Service]
User=www-data
Group=www-data
WorkingDirectory = /var/www/html/vdr_ind/
ExecStart = gunicorn --bind 0.0.0.0:8081 --workers 5 --access-logfile vdr_access.log --erro> ExecReload= /bin/kill -s HUP $MAINPID
KillMode=mixed
TimeoutStopSec =5
PrivateTmp=true
[Install]
WantedBy = multi-user.target
setting nginx
server {
location /static/ {
alias /var/www/html/vdr_ind/static/;
}
location / {
proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_read_timeout 300;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}