From 575d5056e52ca3702ed6d332a94d491a6cde5da7 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 5 Feb 2020 22:16:36 +0100 Subject: [PATCH] Improve Pleroma config. --- buster/other_files/append_pleroma_config | 11 +++++++++++ buster/other_files/pleroma_panel.html | 1 + buster/setup_scripts/setup_pleroma.sh | 4 ++++ 3 files changed, 16 insertions(+) create mode 100644 buster/other_files/pleroma_panel.html diff --git a/buster/other_files/append_pleroma_config b/buster/other_files/append_pleroma_config index 823d3e3..638799e 100644 --- a/buster/other_files/append_pleroma_config +++ b/buster/other_files/append_pleroma_config @@ -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 index 0000000..4c4e1c5 --- /dev/null +++ b/buster/other_files/pleroma_panel.html @@ -0,0 +1 @@ +

foo bar baz

diff --git a/buster/setup_scripts/setup_pleroma.sh b/buster/setup_scripts/setup_pleroma.sh index cecba80..f4d0d43 100755 --- a/buster/setup_scripts/setup_pleroma.sh +++ b/buster/setup_scripts/setup_pleroma.sh @@ -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 -- 2.30.2