From: Christian Heller Date: Wed, 5 Feb 2020 21:16:36 +0000 (+0100) Subject: Improve Pleroma config. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bprefix%7D%7D/static/%7B%7Btodo.comment%7D%7D?a=commitdiff_plain;h=575d5056e52ca3702ed6d332a94d491a6cde5da7;p=config Improve Pleroma config. --- 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