Trying to set the docker container up behind a apache reverse proxy #788
Closed
Atlasfreak
started this conversation in
General
Replies: 1 comment
-
You should add this to the apache config:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying to set the docker container up behind a reverse proxy but I always get an error when trying to register.
The error:
[b6534e93-23bb-4f1b-8bda-efd32f45bf0c] ActionController::InvalidAuthenticityToken (HTTP Origin header (https://maybe.<url>.de) didn't match request.base_url (http://maybe.<url>.de)):
The server runs on the maybe..de domain.
I deployed the container with docker compose via Portainer and modified the compose file slightly as I hoped that would fix the problem.
My compose file:
and the stack.env file:
My apache config:
I think it may have something todo with #308 but as far as I know that seems to be fixed and should have been handeled by
RAILS_FORCE_SSL
andRAILS_ASSUME_SSL
.Beta Was this translation helpful? Give feedback.
All reactions