Https suddenly missing from webhook and callback URLs

Updated my self-hosted instance (Coolify on a Hetzner VPS) yesterday being behind almost 10 versions, and after that all my new webhook and callback URLs are showing and get copied without https://.

SSL is working fine for my instance, and webhooks work fine when I add the prefix https://, but callback URLs for various OAuths now fail when I try to make new connections (existing connections work well).

ENV VARIABLES

SERVICE_FQDN_N8N=mydomain.tld
SERVICE_URL_N8N=https://mydomain.tld
N8N_HOST=mydomain.tld
N8N_PORT=5678
N8N_PROTOCOL=https
NODEJS_PREFER_IPV4=true
POSTGRES_DB=dbname
SERVICE_PASSWORD_POSTGRES=pgpassword
SERVICE_USER_POSTGRES=pguser
WEBHOOK_URL=https://mydomain.tld
N8N_EDITOR_BASE_URL=https://mydomain.tld

Information on your n8n setup

  • n8n version: 1.109.1

Thanks for any ideas and help!

Hey, that’s a big version jump! :smiley:

Things changed a bit, so some variables are no longer used. We need to drop some, you can replace yours with these:

N8N_HOST=mydomain.tld
N8N_PORT=5678
N8N_PROTOCOL=https
N8N_EDITOR_BASE_URL=https://mydomain.tld

Then restart the container/host.

Let me know if this helps!

EDIT: updated vars

1 Like

@krisn0x

Can you please list documentation page(s) for the following env vars:

  • NODEJS_PREFER_IPV4
  • POSTGRES_DB
  • SERVICE_PASSWORD_POSTGRES
  • SERVICE_USER_POSTGRES
  • N8N_PUBLIC_API_URL

I think you might have just invented them :joy:.
Nothin in the documentation indicates these exist (at least anymore).

I just removed vars from @milce ‘s list, tried to only remove the ones I thought are an issue and added 1, decided not to touch the others as I’m not familiar with them.

Edit: ah, I see the last one I added doesn’t really exist - you are correct, this I think came from a convo with Claude I had earlier, it did recommend a few that were incorrect and probably I forgot to cross check this one. Updated them again

Your settings look ok although if your webhook and editor url is the same you only need to set WEBHOOK_URL

Do you have any other env options set as the issue looks like the options you have are not being picked up correctly?

These weird ones were actually for compose substitution, from some Coolify template from over a year ago I think :joy:

@krisn0x thanks for the tips, got it working now after clearing up my compose file and environmental variables, and removing some unnecessary compose substitutions that were overriding the domain instead of URL for the editor base url

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.