X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=sidebyside;f=systemfiles%2Fnginx.conf;h=3def78da74abf407fcd91de8a0b62c137931ecef;hb=612c0f953366a73b4c87d8c3ab1aa8c16bd1a411;hp=ffbe96bfba486885c00cab55e7c04c59ea2c03f9;hpb=d21b4dc9cb8bee7d96187d7d594016ae2003f1e7;p=config
diff --git a/systemfiles/nginx.conf b/systemfiles/nginx.conf
index ffbe96b..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;
@@ -38,8 +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/;
- rewrite ^(/zettel/(.*/)*[^./]+)$ $1.html;
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