home · contact · privacy
36e2447f3c4cbf4d36438d4342c3e7b617336345
[config] / bullseye / etc_files / microblogpub / etc / nginx / sites-available / microblogpub.nginx
1 server {
2     listen 443 ssl;
3     client_max_body_size 4G;
4     server_name REPLACE_fqdn_ECALPER;
5     ssl_certificate /etc/letsencrypt/live/REPLACE_fqdn_ECALPER/fullchain.pem;
6     ssl_certificate_key /etc/letsencrypt/live/REPLACE_fqdn_ECALPER/privkey.pem;
7
8     location / {
9       proxy_set_header Host $http_host;
10       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
11       proxy_set_header X-Forwarded-Proto $scheme;
12       proxy_set_header Upgrade $http_upgrade;
13       proxy_set_header Connection $connection_upgrade;
14       proxy_redirect off;
15       proxy_buffering off;
16       proxy_pass http://localhost:8000;
17     }
18 }
19
20 map $http_upgrade $connection_upgrade {
21   default upgrade;
22   '' close;
23 }