# CSRF login error after upgrade to 2.5.0.beta4

**URL:** <https://meta.discourse.org/t/csrf-login-error-after-upgrade-to-2-5-0-beta4/150423>\
**Category:** Product Support\
**Created:** [5 במאי,‏ 2020,‏ 10:51am UTC](https://meta.discourse.org/t/csrf-login-error-after-upgrade-to-2-5-0-beta4/150423 "2020-05-05T10:51:49Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [8 ביוני,‏ 2020,‏ 8:46pm UTC](https://meta.discourse.org/t/csrf-login-error-after-upgrade-to-2-5-0-beta4/150423/11 "2020-06-08T20:46:34Z")

</div>

I think that you don’t need that `proxy_pass` right there in your `app.yml.` My stanza like that looks like this:

```plaintext
  after_bundle_exec:
    # This is the magic to get IP numbers transmitted to Discourse
    # See https://meta.discourse.org/t/last-ip-address-and-action-dispatch-trusted-proxies/50098/3?u=pfaffman
    - replace:
        filename: /etc/nginx/conf.d/discourse.conf
        from: "types {"
        to: |
          set_real_ip_from 192.168.1.0/24;
          set_real_ip_from 172.18.0.0/24;
          set_real_ip_from 172.17.0.0/24;
          real_ip_recursive on;
          real_ip_header X-Forwarded-For;
          types {

```

But my code may be from before the switch to Debian in the containers.

You might try just editing that file inside the container and restarting nginx.

---

_[View the full topic](https://meta.discourse.org/t/csrf-login-error-after-upgrade-to-2-5-0-beta4/150423)._
