Coolify n8n OAuth Redirect URL

Hi there,

I am trying to connect different social media account, and I have tried with couple different ones, x, google notably.

Everytime I create clientID, client Secret and setup the callback URI/Redirect URL
I need to setup https://ju…t.com/rest/oauth2-credential/callback with https.

The address in the callback in n8n is setup as ju…t.com/rest/oauth2-credential/callback (as in the image)

And I can’t seem to setup the https in front. I tried everything I could think of and find. Please find below my variables.

WEBHOOK_URL=https://ju…t.com/
N8N_ENABLE_WEBSOCKETS=true
N8N_HOST=https://j…t.com
N8N_PROTOCOL=https
N8N_PORT=443
SERVICE_FQDN_N8N=ju…t.com
SERVICE_URL_N8N=ju…t.com
N8N_EDITOR_BASE_URL=https://ju…t.com

  • n8nVersion: 1.94.1
  • platform: docker (self-hosted)
  • nodeJsVersion: 20.19.2
  • database: postgres
  • executionMode: regular

If anyone sees what I missed and can help me, I would really appreciate it.

PS: Please note I put … in the URL to hide the full URL. (Just wanted to make that clear)

1 Like

@Julien_Sebire Hello,

Mostly looks okays, and your right it should be showing https, am wondering thought if you put the call back url as https with ure domain in the app side, when the signin button appears what happens? Do you get an error then? It may work as you’ve set the main parts already.

Best regards,

Samuel

Samuel you really are the king !
So as mentioned I modified the request, using the https:// in the request. And I accessed a new screen.


but when I hit authorize app, I am getting denied for the same error

1 Like

I figured it out, so I am sharing with you the answer.

The docker compose file, was using the FQDN which is indeed without the https.

I changed the docker compose file to:
- ‘N8N_EDITOR_BASE_URL=${N8N_EDITOR_BASE_URL}’
- ‘WEBHOOK_URL=${WEBHOOK_URL}’

And it works! Thank you for the support! I don’t know why/where/when the variable in the docker compose file changed. But at least now, if anyone has a similar issue. You have the answer.

Kind regards,
Julien

2 Likes

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