home · contact · privacy
Update Firefox.
[config] / systemfiles / nginx.conf
index 4bb06e5fd7902ea731b6b136af38d2c19dd27708..3def78da74abf407fcd91de8a0b62c137931ecef 100644 (file)
@@ -12,8 +12,7 @@ http {
             text/html                             html htm shtml;
             text/css                              css;
             text/xml                              xml;
-            text/plain                            txt;
-            text/plain                            sh;
+            text/plain                            txt sh rst md;
             application/xhtml+xml                 xhtml;
             application/pdf                       pdf;
             image/jpeg                            jpg jpeg;
@@ -39,7 +38,9 @@ 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/ {
+                location /zettel/ {
+                        # rewrite non-suffixed filenames to .html ones 
+                        rewrite ^(/zettel/(.*/)*[^./]+)$ $1.html;
                         autoindex on;
                 }
                 location /dump/ {
@@ -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