X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=inline;f=systemfiles%2Fnginx.conf;h=3def78da74abf407fcd91de8a0b62c137931ecef;hb=85b455bd3c61b03025860de830194a8501d0ddbf;hp=3005bfad8edbd1ba8475354a9372356ca63f5681;hpb=255aedd992afd64149946209d8f98412a9bf1d31;p=config
diff --git a/systemfiles/nginx.conf b/systemfiles/nginx.conf
index 3005bfa..3def78d 100644
--- a/systemfiles/nginx.conf
+++ b/systemfiles/nginx.conf
@@ -12,7 +12,7 @@ http {
text/html html htm shtml;
text/css css;
text/xml xml;
- text/plain txt sh rst;
+ text/plain txt sh rst md;
application/xhtml+xml xhtml;
application/pdf pdf;
image/jpeg jpg jpeg;
@@ -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