home · contact · privacy
Add Pleroma config customization.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 29 Jan 2020 23:36:06 +0000 (00:36 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 29 Jan 2020 23:36:06 +0000 (00:36 +0100)
buster/other_files/append_pleroma_config [new file with mode: 0644]
buster/setup_scripts/setup_pleroma.sh

diff --git a/buster/other_files/append_pleroma_config b/buster/other_files/append_pleroma_config
new file mode 100644 (file)
index 0000000..6ee31af
--- /dev/null
@@ -0,0 +1,3 @@
+
+config :pleroma, :instance,
+  registrations_open: false
index 22e318ecaa74cadbd9f9f01d5926d18c1a662834..cb7725a0fa43f9970243d3c620acd9b10838d9aa 100755 (executable)
@@ -58,6 +58,11 @@ su pleroma -s $SHELL -lc "./bin/pleroma_ctl instance gen \
 su postgres -s $SHELL -lc "psql -f /tmp/setup_db.psql"
 su pleroma -s $SHELL -lc "./bin/pleroma_ctl migrate"
 
+# Since the OTP release does not support .secret.exs configuration
+# files, we hack our own alternative by simply appending custom
+# configurations to /etc/config.exs.
+cat "${config_tree_prefix}/other_files/append_pleroma_config" >> /etc/config.exs
+
 # 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