~tardypad/tardypad.me

ref: 3583bee9b3712202a330f02844308a8b2d9e280b tardypad.me/pkgs/nginx.conf -rw-r--r-- 587 bytes
3583bee9Damien Tardy-Panis carl: add reverse proxy config 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
server {
    listen       80;
    server_name  pkgs.tardypad.me;

    access_log   off;

    location / {
        return 301 https://$host$request_uri;
    }
}
server {
    listen       443 ssl;
    server_name  pkgs.tardypad.me;
    root         /srv/http/pkgs/;

    access_log /var/log/nginx/pkgs_access.log;
    error_log  /var/log/nginx/pkgs_error.log;

    auth_basic "Restricted area";
    auth_basic_user_file /etc/nginx/htpasswd_pkgs;

    ssl_certificate /etc/letsencrypt/live/tardypad.me/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/tardypad.me/privkey.pem;
}