home · contact · privacy
Update public server config.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 5 Jun 2016 17:23:48 +0000 (19:23 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 5 Jun 2016 17:23:48 +0000 (19:23 +0200)
bin/hubbabubba.sh [new file with mode: 0755]
jessie_postinstall.sh
systemfiles/nginx.conf
systemfiles/plomlombot.service

diff --git a/bin/hubbabubba.sh b/bin/hubbabubba.sh
new file mode 100755 (executable)
index 0000000..50cc0f6
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd ~/plomlombot-irc
+./run.sh -r 604800 -n hubbabubba "#freakazoid"
index 277ab39cffbcb8bb5f97fec5c909b9c354387d8b..419805ff33e67c35e2586e9200385d6a94ae35e6 100755 (executable)
@@ -225,7 +225,6 @@ if [ "$1" = "server" ]; then
         su - plom -c 'git clone https://github.com/plomlompom/htwtxt $GOPATH/src/htwtxt'
         su - plom -c 'go get htwtxt'
         path=`su - plom -c 'echo $GOPATH/bin/htwtxt'`
-        #setcap 'cap_net_bind_service=+ep' $path
         su - plom -c 'mkdir -p ~/htwtxt'
         cp config/systemfiles/htwtxt_restart_reminder.service \
             /etc/systemd/system/htwtxt_restart_reminder.service
@@ -252,6 +251,21 @@ if [ "$1" = "server" ]; then
         touch /var/www/password_irclogs_zrolaps
         ln -s /home/plom/plomlombot_db/6f322d574618816aa2d6d1ceb4fd2551/657eea42f86866f2954d39f92a6c71ff/logs/ /var/www/html/irclogs/nodrama.de
         touch /var/www/password_irclogs_nodrama_de
+        ln -s /home/plom/plomlombot_db/6f322d574618816aa2d6d1ceb4fd2551/a083c5d5efca3734294fa656692990b6/logs/ /var/www/html/irclogs/freakazoid
+        touch /var/www/password_irclogs_freakazoid
+
+        # Set up other web-served directories.
+        su - plom -c 'mkdir -p /home/plom/dump'
+        ln -s /home/plom/dump/ /var/www/html/dump
+        su - plom -c 'mkdir -p /home/plom/geheim'
+        ln -s /home/plom/geheim/ /var/www/html/geheim
+        su - plom -c 'mkdir -p /home/plom/lifelog'
+        ln -s /home/plom/lifelog/ /var/www/html/lifelog
+        su - plom -c 'git init --bare /home/plom/lifelog.git'
+        su - plom -c 'touch /home/plom/lifelog.git/hooks/post-update'
+        su - plom -c 'chmod a+x /home/plom/lifelog.git/hooks/post-update'
+        su - plom -c 'echo "#!/bin/sh" > /home/plom/lifelog.git/hooks/post-update'
+        su - plom -c 'echo "GIT_WORK_TREE=/home/plom/lifelog git checkout -f" >> /home/plom/lifelog.git/hooks/post-update'
     fi
 
 elif [ "$1" = "thinkpad" ]; then
index 0c1efe317218698071baf42ce7bb46767bffcaca..4bb06e5fd7902ea731b6b136af38d2c19dd27708 100644 (file)
@@ -15,6 +15,9 @@ http {
             text/plain                            txt;
             text/plain                            sh;
             application/xhtml+xml                 xhtml;
+            application/pdf                       pdf;
+            image/jpeg                            jpg jpeg;
+            image/png                             png;
         }
         default_type application/octet_stream;
         charset utf-8;
@@ -36,6 +39,17 @@ http {
                 ssl_certificate /etc/letsencrypt/live/dump.plomlompom.com/fullchain.pem;
                 ssl_certificate_key /etc/letsencrypt/live/dump.plomlompom.com/privkey.pem;
                 root /var/www/html/;
+                location /lifelog/ {
+                        autoindex on;
+                }
+                location /dump/ {
+                        autoindex on;
+                }
+                location /geheim/ {
+                        auth_basic "geheim geheim";
+                        auth_basic_user_file /var/www/password_geheim;
+                        autoindex on;
+                }
                 location /irclogs/zrolaps/ {
                         auth_basic "#zrolaps logs";
                         auth_basic_user_file /var/www/password_irclogs_zrolaps;
@@ -46,6 +60,16 @@ http {
                         auth_basic_user_file /var/www/password_irclogs_nodrama_de;
                         autoindex on;
                 }
+                location /irclogs/freakazoid/ {
+                        auth_basic "#freakazoid logs";
+                        auth_basic_user_file /var/www/password_irclogs_freakazoid;
+                        autoindex on;
+                }
+                location /lesekreis/ {
+                        auth_basic "Quellen Lesekreis";
+                        auth_basic_user_file /var/www/password_lesekreis;
+                        autoindex on;
+                }
         }
 
         # htwtxt
index 8c464a27a31bfdad6b9040dedc04e0c739840bd3..8e62c0d121f3827c467103dd4af8877ff2388aef 100644 (file)
@@ -6,7 +6,7 @@ Description=plomlombot screen
 [Service]
 Type=forking
 User=plom
-ExecStart=/bin/sh -c 'LC_ALL=en_US.UTF8 screen -d -m ~/config/bin/plomlombot.sh && screen -d -m ~/config/bin/broiler_in.sh'
+ExecStart=/bin/sh -c 'LC_ALL=en_US.UTF8 screen -d -m ~/config/bin/plomlombot.sh && screen -d -m ~/config/bin/broiler_in.sh && screen -d -m ~/config/bin/hubbabubba.sh'
 
 [Install]
 WantedBy=multi-user.target