From 9b5745271c3dce941eeae4eb72dfc7716e3bdbf9 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sun, 2 Feb 2020 21:36:44 +0100 Subject: [PATCH] Improve Pleroma customizations. --- buster/other_files/append_pleroma_config | 11 ++++++++++- buster/other_files/pixel.png | Bin 0 -> 146 bytes buster/setup_scripts/setup_pleroma.sh | 4 ++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 buster/other_files/pixel.png diff --git a/buster/other_files/append_pleroma_config b/buster/other_files/append_pleroma_config index 6ee31af..823d3e3 100644 --- a/buster/other_files/append_pleroma_config +++ b/buster/other_files/append_pleroma_config @@ -1,3 +1,12 @@ +########################################## +# below this: customizations by plomlompom + config :pleroma, :instance, - registrations_open: false + registrations_open: false + +config :pleroma, :frontend_configurations, + pleroma_fe: %{ + background: "/pixel.png", + logo: "/pixel.png" + } diff --git a/buster/other_files/pixel.png b/buster/other_files/pixel.png new file mode 100644 index 0000000000000000000000000000000000000000..45d6db2637b8c66e0a7c575d27d83f669ac46db0 GIT binary patch literal 146 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx1SBVv2j2ryoCO|{#S9F3${@^GvDCf{D9B#o z>Fdh=go#OnL!mO@LV0FMhJw4NZ$Nk>pEytv lkEe@c2*>s0fZ$+e28I_5#muYSKLf=XJYD@<);T3K0RX7DBG&)_ literal 0 HcmV?d00001 diff --git a/buster/setup_scripts/setup_pleroma.sh b/buster/setup_scripts/setup_pleroma.sh index 59a872f..cecba80 100755 --- a/buster/setup_scripts/setup_pleroma.sh +++ b/buster/setup_scripts/setup_pleroma.sh @@ -63,6 +63,10 @@ su pleroma -s $SHELL -lc "./bin/pleroma_ctl migrate" # configurations to /etc/config.exs. cat "${config_tree_prefix}/other_files/append_pleroma_config" >> /etc/pleroma/config.exs +# Single-pixel picture hack for removing Pleroma FE images. +cp "${config_tree_prefix}/other_files/pixel.png" /var/lib/pleroma/static/ +chown pleroma:nogroup /var/lib/pleroma/static/pixel.png + # Prepare NGINX config for Pleroma. cp /opt/pleroma/installation/pleroma.nginx /etc/nginx/sites-available/pleroma.nginx sed -i "s/example\.tld/${domain}/g" /etc/nginx/sites-available/pleroma.nginx -- 2.30.2