Changelog

A development history of this very website. This is my toy Django project where I can mess around and try new things. View the source code on Codeberg.


Containerized! Finally, that took all day. But I got there and even learned a couple of things along the way. I just containerized Django/gunicorn, not gonna bother with Nginx, I'm sure it's simple and ultimately I want to learn how to deploy via Coolify.
Nov. 27, 2026, 12:35 p.m.

Hello! :D
Nov. 27, 2026, 12:34 p.m.

HIII
Nov. 27, 2026, 3:13 a.m.

Quick recap of the CSRF debacle. Django's CSRF check requires that the Origin header matches the Host header. The Host header begins with "https", Nginx uses "http" to communicate with gunicorn. This can be resolved by setting `SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")`. Django will now treat "http" as secure when "HTTP_X_FORWARED_PROTO" == "https". But this didn't work for me because this website runs behind Cloudflare, which also uses "http". So Nginx was not setting "HTTP_X_FOWARDED_PROTO" to "https". But Kevin's settings also set CSRF_TRUSTED_ORIGINS as I did before and everything works.
Nov. 26, 2026, 8:16 p.m.

Testing CSRF check. Copied some settings from Kevin's Oxen project.
Nov. 26, 2026, 7:59 p.m.

The CSRF check failed. I thought that was strange. I had to add the domain to CSRF_TRUSTED_ORIGINS, I'll look into it later.
Nov. 26, 2026, 6:15 p.m.

Deployed! So exciting. Just with Nginx and gunicorn for now. I did have to figure out how to have Nginx reverse-proxy traffic to Apache so I could run a Wordpress instance on the same server, so that was fun. Next up learn how to use Docker.
Nov. 26, 2026, 6:14 p.m.