mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-02-07 23:02:34 +00:00
Fix nginx location for serving media directly
This commit is contained in:
parent
503e43da5d
commit
045dfaf2af
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
# }
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue