server { server_name ~^www\.(?.+)$; {% include 'roles/letsencrypt/templates/ssl_header.j2' %} return 301 https://$domain$request_uri; }