From 90e0911cdbc59215e7d6910959abf27ff216e13c Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Wed, 25 Sep 2024 15:19:57 -0400 Subject: [PATCH] Provide full uploads config for a subdomain --- installation/pleroma.nginx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/installation/pleroma.nginx b/installation/pleroma.nginx index c9cdca681..093c4de43 100644 --- a/installation/pleroma.nginx +++ b/installation/pleroma.nginx @@ -139,6 +139,8 @@ server { # config :pleroma, Pleroma.Upload, # base_url: "https://media.example.tld/uploads/", # +# config :pleroma, Pleroma.Uploaders.Local, uploads: "/var/lib/pleroma/uploads" +# # And then uncomment and configure the following server. # Make sure your certificate was issued to support both domains or use a dedicated certificate: # @@ -183,6 +185,11 @@ server { # proxy_set_header Host $http_host; # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # +# location ~ /uploads { +# root /var/lib/pleroma; +# allow all; +# } +# # location ~ ^/(media|proxy) { # proxy_cache pleroma_media_cache; # slice 1m;