home · contact · privacy
Extend data about url catcher stuff.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 26 Jan 2017 03:02:36 +0000 (04:02 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 26 Jan 2017 03:02:36 +0000 (04:02 +0100)
notes
systemfiles/nginx.conf

diff --git a/notes b/notes
index bdc190257c141a7b63e22b678b771bb4521defaa..1dcf1b4c276678c62bd89681037cc445b85dfada 100644 (file)
--- a/notes
+++ b/notes
@@ -21,3 +21,34 @@ n_updates=$(printf "$status" | grep -vE '^\?\?' | wc -l)
 if [ "$n_updates" -gt 0 ]; then
   git commit -a -m 'Update metadata'
 fi
+
+
+furthermore, the url_catcher virtualenv run.sh script needs this (to compile uwsgi):
+
+apt-get install python3.4-dev
+
+
+also, these:
+
+# /etc/systemd/system/url_catcher.service
+
+[Unit]
+Description=URL catcher
+
+[Service]
+Type=forking
+User=plom
+ExecStart=/bin/sh -c 'LC_ALL=en_US.UTF8 screen -d -m ~/url_catcher.sh'
+
+[Install]
+WantedBy=multi-user.target
+
+
+
+and url_catcher.sh:
+
+#!/bin/sh
+
+cd ~
+cd url-catcher
+./run.sh
index 07d6bdebf7e80f38f8cb078185ff593ea9521cc4..3def78da74abf407fcd91de8a0b62c137931ecef 100644 (file)
@@ -39,6 +39,7 @@ http {
                 ssl_certificate_key /etc/letsencrypt/live/dump.plomlompom.com/privkey.pem;
                 root /var/www/html/;
                 location /zettel/ {
+                        # rewrite non-suffixed filenames to .html ones 
                         rewrite ^(/zettel/(.*/)*[^./]+)$ $1.html;
                         autoindex on;
                 }
@@ -70,6 +71,10 @@ http {
                         auth_basic_user_file /var/www/password_lesekreis;
                         autoindex on;
                 }
+                location /uwsgi/ {
+                        include uwsgi_params;
+                        uwsgi_pass 127.0.0.1:3031;
+                }
         }
 
         # htwtxt