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;
8 // via <https://www.digitalocean.com/community/tutorials/how-to-improve-website-performance-using-gzip-and-nginx-on-ubuntu-20-04>
9 // and https://docs.microblog.pub/installing.html#nginx-config-tips
16 gzip_http_version 1.1;
21 application/javascript
22 application/x-javascript
25 application/manifest+json
41 application/javascript
42 application/activity+json
43 application/octet-stream;
46 proxy_set_header Host $http_host;
47 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
48 proxy_set_header X-Forwarded-Proto $scheme;
49 proxy_set_header Upgrade $http_upgrade;
50 proxy_set_header Connection $connection_upgrade;
53 proxy_pass http://localhost:8000;
57 map $http_upgrade $connection_upgrade {