OAuth2 and Letsencrypt clash

Looked the commit, I have it insalled. But I think there is a mistake there.

return 301 https://${DISCOURSE_HOSTNAME}$request_uri;
should be
return 301 https://${DISCOURSE_HOSTNAME}\$request_uri;

Please correct me if I am wrong.