gzip_typesapplication/atom+xmlapplication/javascriptapplication/jsonapplication/ld+jsonapplication/manifest+jsonapplication/rss+xmlapplication/vnd.geo+jsonapplication/vnd.ms-fontobjectapplication/x-font-ttfapplication/x-web-app-manifest+jsonapplication/xhtml+xmlapplication/xmlfont/opentypeimage/bmpimage/svg+xmlimage/x-icontext/cache-manifesttext/csstext/plaintext/vcardtext/vnd.rim.location.xloctext/vtttext/x-componenttext/x-cross-domain-policy;# text/html is always compressed by gzip module
server{
listen80;
listen[::]:80;
server_nameexample.com;
if($host=example.com){
return301https://$host$request_uri;
}# managed by Certbot
return404;# managed by Certbot
}
server{
listen[::]:443sslhttp2;# managed by Certbot
listen443sslhttp2;# managed by Certbot
ssl_certificate/etc/letsencrypt/live/example.com/fullchain.pem;# managed by Certbot
ssl_certificate_key/etc/letsencrypt/live/example.com/privkey.pem;# managed by Certbot
include/etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam/etc/letsencrypt/ssl-dhparams.pem;# managed by Certbot