aboutsummaryrefslogtreecommitdiff
path: root/template/nginx/2fa.conf.template
blob: aad66c19bb024662c45dc9d35a4b5fc67c1ed078 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;
    server_name 2fa.${CRUPEST_DOMAIN};
    
    location / {
        include common/proxy-common;
        proxy_pass http://2fauth:8000/;
    }
}

server {
    listen 80;
    listen [::]:80;
    server_name 2fa.${CRUPEST_DOMAIN};

    include common/https-redirect;
    include common/acme-challenge;
}