server { listen 80; listen [::]:80; server_name "~^(?.*joshstock.in)$"; # redirect non-https to https return 301 https://$domain$request_uri; }