# Discouse 与 NginX 反向代理 - 无法登录

**URL:** https://meta.discourse.org/t/discouse-with-nginx-reverse-proxy-cannot-log-in/205216
**Category:** Self-hosting
**Created:** [2021年十月5日 01:26 UTC](https://meta.discourse.org/t/discouse-with-nginx-reverse-proxy-cannot-log-in/205216 "2021-10-05T01:26:44Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [2026年一月23日 18:37 UTC](https://meta.discourse.org/t/discouse-with-nginx-reverse-proxy-cannot-log-in/205216/5 "2026-01-23T18:37:17Z")

</div>

看起来您已经在您创建的新主题中解决了您的问题：

> [@Users Can’t Log In After Nginx Setup](https://meta.discourse.org/t/users-can-t-log-in-after-nginx-setup/394088/2):
>
> Added these - it now works. proxy\_set\_header X-Forwarded-Scheme https; proxy\_set\_header X-Forwarded-Host $host; proxy\_set\_header X-Forwarded-Port 443;

---

_[View the full topic](https://meta.discourse.org/t/discouse-with-nginx-reverse-proxy-cannot-log-in/205216)._
