Skip to content

Unable to log in behind a reverse proxy #107

Open

Description

@misterfish

Hi, is the Docker-based installation of Decidim production-ready?

And, how does one make it work behind a reverse proxy, Apache for example?

We are able to access the landing page (https://our-domain/users/sign_in), so the proxy is working.

After signing in we get a Ruby stacktrace:

  ActionController::InvalidAuthenticityToken in Decidim::Devise::SessionsController#create
  ActionController::InvalidAuthenticityToken
  Extracted source (around line #211):
      def handle_unverified_request
        raise ActionController::InvalidAuthenticityToken
      end
    end
  end

In our Apache config we've got:

# On/Off both fail
# ProxyPreserveHost Off
# ProxyPreserveHost On

ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/

Thanks.

Activity

  1. gdmhrobal commented on Mar 21, 2025

    @gdmhrobal

    I´ve got the same problem, a solution would be great.
    Behind the reverse proxy the assets are also not loading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions