# 'localhost' redirect problem

**URL:** <https://community.n8n.io/t/localhost-redirect-problem/77591>\
**Category:** Questions\
**Tags:** oauth2, ai-kapa\
**Created:** [February 13, 2025, 12:06pm UTC](https://community.n8n.io/t/localhost-redirect-problem/77591 "2025-02-13T12:06:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![augxmas](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/augxmas/32/57837_2.png) [@augxmas](https://community.n8n.io/u/augxmas)\
**Post date:** [February 13, 2025, 12:06pm UTC](https://community.n8n.io/t/localhost-redirect-problem/77591/1 "2025-02-13T12:06:07Z")

</div>

hello,  
I am applying ‘self host’ with my own domain ‘n8n.monomate.kr’ and i’d like to use ‘youtube’ things.  
for this , i should register my credential of google on my own host server workspace.

OAuth Redirect URL is like below so I met error  
[http://localhost:5678/rest/oauth2-credential/callback](http://localhost:5678/rest/oauth2-credential/callback)

how to change like below  
http:/n8n.monomate.kr:5678/rest/oauth2-credential/callback

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [February 13, 2025, 12:06pm UTC](https://community.n8n.io/t/localhost-redirect-problem/77591/2 "2025-02-13T12:06:08Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![hubschrauber](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/hubschrauber/32/46788_2.png) [@hubschrauber](https://community.n8n.io/u/hubschrauber)\
**Post date:** [February 25, 2025, 12:01am UTC](https://community.n8n.io/t/localhost-redirect-problem/77591/4 "2025-02-25T00:01:51Z")

</div>

Set the first (baseurl) part in env var `WEBHOOK_URL=http://n8n.monomate.kr:5678`  
See: [Docs](https://docs.n8n.io/hosting/scaling/queue-mode/#configure-webhook-url)

Google may require the redirect URL to be https on the default port (443) though, like `https://n8n.monomate.kr/rest/oauth2-credential/callback`.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [May 26, 2025, 12:02am UTC](https://community.n8n.io/t/localhost-redirect-problem/77591/5 "2025-05-26T00:02:10Z")

</div>

Closed on May 26, 2025, 12:02am UTC

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