home · contact · privacy
Minor fixes.
[config] / bullseye / etc_files / dumpsite / etc / nginx / sites-available / dumpsite.nginx
1 server {
2     listen 443 ssl;
3     server_name REPLACE_fqdn_ECALPER;
4     ssl_certificate /etc/letsencrypt/live/REPLACE_fqdn_ECALPER/fullchain.pem;
5     ssl_certificate_key /etc/letsencrypt/live/REPLACE_fqdn_ECALPER/privkey.pem;
6     root /var/www-dump/;
7
8     location /dump/ {
9         autoindex on;
10         # add_header "Access-Control-Allow-Origin" *;
11     }
12
13     location /geheim/ {
14         auth_basic "geheim geheim";
15         auth_basic_user_file /var/www-dump/password_geheim;
16         autoindex on;
17     }
18
19     location /zettel/ {
20         # rewrite non-suffixed filenames to .html ones
21         rewrite ^(/zettel/(.*/)*[^./]+)$ $1.html;
22         autoindex on;
23     }
24
25     location /uwsgi/ {
26         include uwsgi_params;
27         uwsgi_pass 127.0.0.1:3031;
28     }
29 }