Fix nginx location for serving media directly

This commit is contained in:
Mark Felder 2024-10-30 10:45:06 -04:00
parent 503e43da5d
commit 045dfaf2af

View file

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