Add End of String $ for nginx domain regex

The Regex for the domain check does not include an end of string terminator ($) so it would allow a match on additional hosts like "mckinsey.com.untrusteddomain.com"