logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/
commit: 90e0911cdbc59215e7d6910959abf27ff216e13c
parent 6b596ca8e2bf5a29ba0539f00c9adf9e0de3f391
Author: Mark Felder <feld@feld.me>
Date:   Wed, 25 Sep 2024 15:19:57 -0400

Provide full uploads config for a subdomain

Diffstat:

Minstallation/pleroma.nginx7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git 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;