Http redirect instead of https for v15 docker compose

I’m currently trying to use social login with the provider Office 365. However, the redirect URL is using HTTP instead of HTTPS. My ERPNext URL is using https.

I’m currently using v15 deployed via coolify with docker compose.

I’ve read in some ofhe help forum that we should update the host_name in site_config.json. However, I can’t seem to find that.

Could anyone help please?

Hey revant_one, thanks for replying.

From the code repo you shared, I believe the get_url is called by expand_relative_urls, given that when setting the Office 365 provider, it has a relative path instead of the full URL. However, I see that it is trying to get the host_name from frappe.local.conf.host_name or frappe.local.conf.hostname.

Where can I set this from a docker perspective, please?

set hostname or host_name in site_config.json and it’ll pick it up.

Also understand it’ll pick the same up for internal requests like rendering PDF assets etc.