update docs - better nginx config

This commit is contained in:
rimu 2024-07-15 16:27:35 +08:00
parent 6e36bc3a95
commit a027d2c4fe

View file

@ -375,7 +375,7 @@ server {
server_name piefed.social server_name piefed.social
root /whatever root /whatever
keepalive_timeout 5; keepalive_timeout 30;
ssi off; ssi off;
location / { location / {
@ -389,6 +389,14 @@ server {
proxy_pass http://app_server; proxy_pass http://app_server;
ssi off; ssi off;
} }
# Serve static files directly with nginx
location /static/ {
alias /whatever/app/static/;
expires max;
access_log off;
}
} }
``` ```