X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=systemfiles%2Fnginx.conf;h=3def78da74abf407fcd91de8a0b62c137931ecef;hb=0aa004609f35c5a62d3eba488f8885d13ea2a67d;hp=0c1efe317218698071baf42ce7bb46767bffcaca;hpb=b046c72036463483b349ac7a88c31d6957407274;p=config diff --git a/systemfiles/nginx.conf b/systemfiles/nginx.conf index 0c1efe3..3def78d 100644 --- a/systemfiles/nginx.conf +++ b/systemfiles/nginx.conf @@ -12,9 +12,11 @@ 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; + image/png png; } default_type application/octet_stream; charset utf-8; @@ -36,6 +38,19 @@ 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 /zettel/ { + # rewrite non-suffixed filenames to .html ones + rewrite ^(/zettel/(.*/)*[^./]+)$ $1.html; + 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 +61,20 @@ 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; + } + location /uwsgi/ { + include uwsgi_params; + uwsgi_pass 127.0.0.1:3031; + } } # htwtxt