SSO Custom Provider Redirect URL

Hello!
I’m having some issues with my redirect URL for a custom provider. I have my redirect URL (For my social provider) set to https://sales.domain.org/api/method/frappe.integrations.oauth2_logins.custom/provider/
However, upon redirect from Authentik, the site just hangs and doesn’t resolve. Here’s the URL Authentik is redirecting to:
https://sales.domain.org:8080/api/method/frappe.integrations.oauth2_logins.custom/provider?code={code}&state={state}
The site eventually just returns “This site can’t be reached” “sales.domain.org took too long to respond.”

I couldn’t find any documentation for this online, and none of the other Fourm posts helped me.

set host_name to https://sales.domain.org in site_config.json

It’s set, but I’m still not able to resolve the domain.

Check the Port on which the site is Running and then use that Port in redirecting URL instead of 8080