Skip to content

Unable to log in behind a reverse proxy #107

@misterfish

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.

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