From: Christian Heller <c.heller@plomlompom.de>
Date: Fri, 21 Feb 2020 01:38:56 +0000 (+0100)
Subject: Improve info pages / strings for PeerTube and Pleroma.
X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/static/%7B%7Bprefix%7D%7D/blog?a=commitdiff_plain;h=e0fdf28d1f0d4320f649acb59d62babddb22888d;p=config

Improve info pages / strings for PeerTube and Pleroma.
---

diff --git a/buster/other_files/peertube_production.yaml b/buster/other_files/peertube_production.yaml
index 3b39349..7a7eab4 100644
--- a/buster/other_files/peertube_production.yaml
+++ b/buster/other_files/peertube_production.yaml
@@ -195,7 +195,7 @@ contact_form:
   enabled: true
 
 signup:
-  enabled: false 
+  enabled: false
   limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited
   requires_email_verification: false
   filters:
@@ -265,8 +265,8 @@ auto_blacklist:
 instance:
   name: 'PlomTube'
   short_description: ''
-  description: 'See stuff here: https://plomlompom.com/' # Support markdown
-  terms: 'Whatever plomlompom likes.' # Support markdown
+  description: 'Personal PeerTube instance by plomlompom (see https://plomlompom.com)for his own videos.' # Support markdown
+  terms: 'Privacy: Site visits are logged by the PeerTube software, but with IPs anonymized. Contact: See https://plomlompom.com/contact.html' # Support markdown
   code_of_conduct: '' # Supports markdown
 
   # Who moderates the instance? What is the policy regarding NSFW videos? Political videos? etc
diff --git a/buster/other_files/pleroma_panel.html b/buster/other_files/pleroma_panel.html
index 4c4e1c5..8e2e67f 100644
--- a/buster/other_files/pleroma_panel.html
+++ b/buster/other_files/pleroma_panel.html
@@ -1 +1,4 @@
-<p>foo <a href="https://plomlompom.com">bar</a> baz<p>
+<div style="margin: 1em;">
+  <p>Privacy: Visitor IP addresses are anonymized in the logs.</p>
+  <p>Contact: See <a href="https://plomlompom.com/contact.html">plomlompom.com contact page</a>.</p>
+</div>
diff --git a/buster/other_files/pleroma_terms-of-service.html b/buster/other_files/pleroma_terms-of-service.html
new file mode 100644
index 0000000..7268bac
--- /dev/null
+++ b/buster/other_files/pleroma_terms-of-service.html
@@ -0,0 +1 @@
+This is <a href="https://plomlompom.com">plomlompom</a>'s personal single-user Pleroma instance.
diff --git a/buster/setup_scripts/setup_pleroma.sh b/buster/setup_scripts/setup_pleroma.sh
index 7dd7b3f..fc30e1d 100755
--- a/buster/setup_scripts/setup_pleroma.sh
+++ b/buster/setup_scripts/setup_pleroma.sh
@@ -69,9 +69,11 @@ 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.
+# Info panel and TOS.
 mkdir -p /var/lib/pleroma/static/instance
+mkdir -p /var/lib/pleroma/static/static
 cp "${config_tree_prefix}/other_files/pleroma_panel.html" /var/lib/pleroma/static/instance/panel.html
+cp "${config_tree_prefix}/other_files/pleroma_terms-of-service.html" /var/lib/pleroma/static/static/terms-of-service.html
 
 # Prepare NGINX config for Pleroma.
 cp /opt/pleroma/installation/pleroma.nginx /etc/nginx/sites-available/pleroma.nginx