mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
update docs - better nginx config
This commit is contained in:
parent
6e36bc3a95
commit
a027d2c4fe
1 changed files with 9 additions and 1 deletions
10
INSTALL.md
10
INSTALL.md
|
@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue