logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/
commit: 045dfaf2aff900daaac67942d7f727ff1b46a6e6
parent 503e43da5d9f211d812eb3310bcedff4843e1934
Author: Mark Felder <feld@feld.me>
Date:   Wed, 30 Oct 2024 10:45:06 -0400

Fix nginx location for serving media directly

Diffstat:

Minstallation/pleroma.nginx8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/installation/pleroma.nginx b/installation/pleroma.nginx @@ -134,8 +134,8 @@ server { # federated if you are converting an existing installation, so weigh the risks # carefully. # - # location /uploads { - # root /var/lib/pleroma; <-- make sure this is correct for your deployment + # location /media/ { + # alias /var/lib/pleroma/uploads/; # <-- make sure this is correct for your deployment # allow all; # } @@ -197,8 +197,8 @@ server { # proxy_set_header Host $http_host; # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # -# location /uploads { -# root /var/lib/pleroma; +# location /media/ { # <-- make sure this path matches your Pleroma.Upload :base_url +# alias /var/lib/pleroma/uploads/; # <-- make sure this is correct for your deployment # allow all; # } #