From: Christian Heller Date: Sun, 2 Feb 2020 20:36:44 +0000 (+0100) Subject: Improve Pleroma customizations. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/index.html?a=commitdiff_plain;h=9b5745271c3dce941eeae4eb72dfc7716e3bdbf9;p=config Improve Pleroma customizations. --- 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 0000000..45d6db2 Binary files /dev/null and b/buster/other_files/pixel.png differ 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