I'm trying to setup an alfresco on docker. All components seems to work. I have followed this compose file:
And I used this project to add volumes informations https://github.com/Alfresco/alfresco-docker-installer
In front of this stack, I have setup a haproxy which is listening on HTTPS and serve the certificate. If I try to log in using the public url, I am redirected to an error. In the logs of alfresco-share I can see a CSRF problem:
2020-04-01 22:50:38,427 ERROR [alfresco.web.site] [http-nio-8080-exec-4] javax.servlet.ServletException: Possible CSRF attack noted when asserting referer header 'https://xxxxx/share/page/'. Request: POST /share/page/dologin, FAILED TEST: Assert referer POST /share/page/dologin :: referer: 'https://xxxxxx/share/page/' vs server & context: http://xxxx/ (string) or (regexp)
If I try to log in directly on the tomcat, no problem.
How could I add a HTTPS connector to the share container ? The tomcat on share container is listening on HTTP/8080.
I can't find any configuration for docker over the internet.
Thanks for your help.