home · contact · privacy
Improve Pleroma customizations.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 2 Feb 2020 20:36:44 +0000 (21:36 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 2 Feb 2020 20:36:44 +0000 (21:36 +0100)
buster/other_files/append_pleroma_config
buster/other_files/pixel.png [new file with mode: 0644]
buster/setup_scripts/setup_pleroma.sh

index 6ee31af8388a16c220ff030abf32518b61b7ce34..823d3e332b9b60e584c650ca4b559d6a7c1eeebd 100644 (file)
@@ -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 (file)
index 0000000..45d6db2
Binary files /dev/null and b/buster/other_files/pixel.png differ
index 59a872f2cffb6a3c5a006f8b3cff0052cd6a592e..cecba801f2bd8b431cca5ac2fdf3f39bdcb1cefe 100755 (executable)
@@ -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