16 Commits

Author SHA1 Message Date
Klaas van Schelven
0660701287 createsuperuser and how it relates to email-based addresses: document
chaning actual createsuperuser behavior is usually done using the USERNAME_FIELD
but that field has other repurcussions (that we don't want) too
2024-06-10 16:28:31 +02:00
Klaas van Schelven
4624c1d88c Default max request size: also nginx-side 2024-05-22 13:02:51 +02:00
Klaas van Schelven
b09cfb21c3 Configure runsnappea to be rebooted every day
a way to limit memory leaks

also: deal with SIGTERM 'correctly' (i.e. as demanded by systemd)
2024-05-22 12:44:58 +02:00
Klaas van Schelven
7c760ba546 Remove RuntimeDirectory from runsnappea systemd example conf 2024-05-22 09:24:53 +02:00
Klaas van Schelven
529a7a7c9f runssnappea as a separate command (for e.g. ps) 2024-05-22 09:23:31 +02:00
Klaas van Schelven
bf0855b11d Gunicorn: max-requests
just picked 'some reasonably seeming value' to avoid memory leaks (which I've not
observed yet, but are easily imagined)
2024-05-22 08:43:57 +02:00
Klaas van Schelven
f150c839dc Recommended setup: fix tmpfile troubles in 2 ways
* recommend to just run in the home dir
* don't use private tmp

The troubles were: when set up using private tmp files, the 2 processes
cannot communicate with each other
2024-05-22 08:37:52 +02:00
Klaas van Schelven
d4c74c22f8 In the recommended setup, just use port 8000
simplify simplify simplify. In particular, this creates a symmetry with a 'just run
manage.py runserver', which could be used for debugging

Also, turns out sockets aren't actually faster:
https://stackoverflow.com/a/54013893/339144

> In this particular setup no unix socket performance advantage.
2024-05-22 08:30:16 +02:00
Klaas van Schelven
4b5f1371ed docs: Add server_name to the 443 server too
this is needed when you have multiple servers on the same host
i.e. I ran into it when running munin on the same server
2024-05-18 08:24:36 +02:00
Klaas van Schelven
371c86b552 Docs for single-server: cleanup by doing a full replay 2024-05-17 12:23:17 +02:00
Klaas van Schelven
d2ba9b9ddb Add missing migration 2024-05-17 10:14:09 +02:00
Klaas van Schelven
769e413d28 (WIP) docs for and DDD for single-server deployment 2024-05-16 21:56:39 +02:00
Klaas van Schelven
cb62ec7c58 Docs; WIP for single-server-deployment 2024-05-16 13:11:19 +02:00
Klaas van Schelven
0f0a4f996c DDD: whitenoise
Why?

> One is that WhiteNoise is designed to work in situations where Apache, nginx
> and the like aren’t easily available. But more importantly, it’s easy to
> underestimate what’s involved in serving static files correctly

We deal with both these situations:

* for local development, we recommend running with DEBUG=False and still want to
  sever staticfiles

* for deploying using nginx/whatever, I'd like to keep my instructions as simple
  as possible, and doing this right once (in whitenoise) saves us from having to
  come up with the right instructions for a bunch of webservers.
2024-05-16 10:31:59 +02:00
Klaas van Schelven
5bc3a54e71 Documentation Driven Development: getting started guide
excluding static files
2024-05-16 10:09:55 +02:00
Klaas van Schelven
7a6dc42478 First version of local-install tutorial 2024-05-16 09:08:15 +02:00