pip install gunicornALLOWED_HOSTS = 'domain.com' in project/settings.pySTATIC_ROOT = os.path.join(BASE_DIR, 'static') in project/settings.pypython manage.py collectstaticgunicorn --daemon --workers 3 --bind unix:/web/blog.kalen.pw/kalenpw.sock kalenpw.wsgiExample Nginx config
server { server_name blog.kalen.pw; location = /favicon.ico { access_log off; log_not_found off; } location /static/ { root /web/blog.kalen.pw; } location / { include proxy_params; proxy_pass http://unix:/web/blog.kalen.pw/kalenpw.sock; } listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/kalen.pw/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/kalen.pw/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot } server { if ($host = blog.kalen.pw) { return 301 https://$host$request_uri; } # managed by Certbot server_name blog.kalen.pw; listen 80; return 404; # managed by Certbot }