home · contact · privacy
Improve Pleroma config.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 5 Feb 2020 21:16:36 +0000 (22:16 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 5 Feb 2020 21:16:36 +0000 (22:16 +0100)
buster/other_files/append_pleroma_config
buster/other_files/pleroma_panel.html [new file with mode: 0644]
buster/setup_scripts/setup_pleroma.sh

index 823d3e332b9b60e584c650ca4b559d6a7c1eeebd..638799e71cbbf32fbac3a172833ba32e5c972059 100644 (file)
@@ -10,3 +10,14 @@ config :pleroma, :frontend_configurations,
         background: "/pixel.png",
         logo: "/pixel.png"
     }
+
+config :pleroma, :chat,
+    enabled: false
+
+config :pleroma, :frontend_configurations,
+    pleroma_fe: %{
+        ShowInstanceSpecificPanel: true
+}
+
+config :pleroma, Pleroma.Captcha,
+    enabled:false
diff --git a/buster/other_files/pleroma_panel.html b/buster/other_files/pleroma_panel.html
new file mode 100644 (file)
index 0000000..4c4e1c5
--- /dev/null
@@ -0,0 +1 @@
+<p>foo <a href="https://plomlompom.com">bar</a> baz<p>
index cecba801f2bd8b431cca5ac2fdf3f39bdcb1cefe..f4d0d43e1e75b64a81f8ae55ce746f28c572a4c4 100755 (executable)
@@ -67,6 +67,10 @@ cat "${config_tree_prefix}/other_files/append_pleroma_config" >> /etc/pleroma/co
 cp "${config_tree_prefix}/other_files/pixel.png" /var/lib/pleroma/static/
 chown pleroma:nogroup /var/lib/pleroma/static/pixel.png
 
+# Info panel.
+mkdir -p /var/lib/pleroma/static/instance
+cp "${config_tree_prefix}/other_files/pleroma_panel.html" /var/lib/pleroma/static/instance/panel.html
+
 # 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