aboutsummaryrefslogtreecommitdiff
path: root/straper/db/public/nginx/etc-nginx/sites-available/vault.labunix.xyz-9443.conf
blob: 022539a1fbece648e4328da264a79a9609e146ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
server {
    listen 443 ssl;
    server_name vault.labunix.xyz;

    ssl_certificate     /etc/letsencrypt/live/labunix.xyz/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/labunix.xyz/privkey.pem;

    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 $scheme;

    client_max_body_size 100m;

    location / {
        proxy_pass http://127.0.0.1:9081;
    }

    # keep only if you publish 127.0.0.1:3012:3012
    location /notifications/hub {
        proxy_pass http://127.0.0.1:3012;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }

    location /notifications/hub/negotiate {
        proxy_pass http://127.0.0.1:9081;
    }
}