# www. to non-www
if ($host ~ ^www\.(?<domain>.+)$) {
    return 301 $scheme://$domain$request_uri;
}   
