home · contact · privacy
Add redo blog URL catcher.
[config] / buster / 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     }
11
12     location /geheim/ {
13         auth_basic "geheim geheim";
14         auth_basic_user_file /var/www-dump/password_geheim;
15         autoindex on;
16     }
17
18     location /zettel/ {
19         # rewrite non-suffixed filenames to .html ones
20         rewrite ^(/zettel/(.*/)*[^./]+)$ $1.html;
21         autoindex on;
22     }
23
24     location /uwsgi/ {
25         include uwsgi_params;
26         uwsgi_pass 127.0.0.1:3031;
27     }
28 }