🗝
summary refs log tree commit diff
path: root/nginx/terminate.conf
blob: 731feb232cee1d5b88a50391320e83827a079c67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# %HOST% internal
server {
    listen 443 quic;
    listen [::]:443 quic;
    listen 443 ssl;
    listen [::]:443 ssl;
    server_name %HOST% *.%HOST%;
    add_header alt-svc 'h3=":443"; ma=86400';
    ssl_certificate /etc/tls/%HOST%.crt;
    ssl_certificate_key /etc/tls/%HOST%.key;
    location / {
        proxy_pass http://127.0.0.1:80;
        proxy_http_version 1.1;
        proxy_redirect off;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto https;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;
    }
}