From a027d2c4fe1ed3f6f0459d2255605de318c29571 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Mon, 15 Jul 2024 16:27:35 +0800 Subject: [PATCH] update docs - better nginx config --- INSTALL.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/INSTALL.md b/INSTALL.md index ba79a66e..d20724f2 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -375,7 +375,7 @@ server { server_name piefed.social root /whatever - keepalive_timeout 5; + keepalive_timeout 30; ssi off; location / { @@ -389,6 +389,14 @@ server { proxy_pass http://app_server; ssi off; } + + # Serve static files directly with nginx + location /static/ { + alias /whatever/app/static/; + expires max; + access_log off; + } + } ```