# Setup SSO with Nginx reverse Proxy

**URL:** <https://community.n8n.io/t/setup-sso-with-nginx-reverse-proxy/240061>\
**Category:** Questions\
**Created:** [December 23, 2025, 11:35am UTC](https://community.n8n.io/t/setup-sso-with-nginx-reverse-proxy/240061 "2025-12-23T11:35:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aqeel](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Aqeel](https://community.n8n.io/u/Aqeel)\
**Post date:** [December 23, 2025, 11:35am UTC](https://community.n8n.io/t/setup-sso-with-nginx-reverse-proxy/240061/1 "2025-12-23T11:35:00Z")

</div>

Hello,

I have self hosted n8n on business plan deployed inside a windows VM, i have installed Nginx and using reverse proxy to point it out to n8n.

This way we are accessing n8n from our machines, whenever i created new user it give localhost in invite link and same is in case of setting up SSO, my redirect url is [http://localhost:5678/rest/sso/saml/acs](http://localhost:5678/rest/sso/saml/acs) and entitiy ID is [http://localhost:5678/rest/sso/saml/metadata](http://localhost:5678/rest/sso/saml/metadata) . What changes do i have to make so that it is like [https://mydomain.local/rest/ssp/saml/acs](https://mydomain.local/rest/ssp/saml/acs) ?

---

<div class="post-metadata">

**Author:** ![Parintele\_Damaskin](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/parintele_damaskin/32/139243_2.png) [@Parintele\_Damaskin](https://community.n8n.io/u/Parintele_Damaskin)\
**Post date:** [December 23, 2025, 12:58pm UTC](https://community.n8n.io/t/setup-sso-with-nginx-reverse-proxy/240061/2 "2025-12-23T12:58:37Z")

</div>

Hey @Aqeel !

This env variables should be set as well for the n8n instance:

> N8N\_HOST=mydomain.local  
> N8N\_PROTOCOL=https # if Nginx terminates SSL and you access via https://  
> N8N\_EDITOR\_BASE\_URL=[https://mydomain.local/](https://mydomain.local/)  
> WEBHOOK\_URL=[https://mydomain.local/](https://mydomain.local/)

Merry Christmas 🎅!

---

<div class="post-metadata">

**Author:** ![Aqeel](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Aqeel](https://community.n8n.io/u/Aqeel)\
**Post date:** [December 24, 2025, 1:18pm UTC](https://community.n8n.io/t/setup-sso-with-nginx-reverse-proxy/240061/3 "2025-12-24T13:18:22Z")

</div>

@Parintele_Damaskin it works, thanks

---

<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:** [December 31, 2025, 1:18pm UTC](https://community.n8n.io/t/setup-sso-with-nginx-reverse-proxy/240061/4 "2025-12-31T13:18:59Z")

</div>

Closed on December 31, 2025, 1:18pm UTC

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