X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/balance?a=blobdiff_plain;ds=sidebyside;f=bullseye%2Fetc_files%2Fmicroblogpub%2Fetc%2Fnginx%2Fsites-available%2Fmicroblogpub.nginx;h=6dfe4f15fb6a7c3c7f7a0b3153d8a2d3f11135fa;hb=5ac3429d9101c2aef075526cb2bff6ecea283862;hp=36e2447f3c4cbf4d36438d4342c3e7b617336345;hpb=118c58477dea1bbcbf1d7768469f43839f249a80;p=config diff --git a/bullseye/etc_files/microblogpub/etc/nginx/sites-available/microblogpub.nginx b/bullseye/etc_files/microblogpub/etc/nginx/sites-available/microblogpub.nginx index 36e2447..6dfe4f1 100644 --- a/bullseye/etc_files/microblogpub/etc/nginx/sites-available/microblogpub.nginx +++ b/bullseye/etc_files/microblogpub/etc/nginx/sites-available/microblogpub.nginx @@ -5,6 +5,43 @@ server { ssl_certificate /etc/letsencrypt/live/REPLACE_fqdn_ECALPER/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/REPLACE_fqdn_ECALPER/privkey.pem; + # via + # and https://docs.microblog.pub/installing.html#nginx-config-tips + gzip on; + gzip_disable "msie6"; + gzip_vary on; + gzip_proxied any; + gzip_comp_level 6; + gzip_buffers 16 8k; + gzip_http_version 1.1; + gzip_min_length 256; + gzip_types + application/atom+xml + application/geo+json + application/javascript + application/x-javascript + application/json + application/ld+json + application/manifest+json + application/rdf+xml + application/rss+xml + application/xhtml+xml + application/xml + font/eot + font/otf + font/ttf + image/svg+xml + text/css + text/javascript + text/plain + text/xml + + text/html + + application/javascript + application/activity+json + application/octet-stream; + location / { proxy_set_header Host $http_host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;