mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-02-12 17:15:17 +00:00
Provide full uploads config for a subdomain
This commit is contained in:
parent
6b596ca8e2
commit
90e0911cdb
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue