Hi,
I'm trying to setup an alfresco on docker. All components seems to work. I have followed this compose file:
https://github.com/Alfresco/acs-community-deployment/blob/master/docker-compose/docker-compose.yml
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.
My config:
share:
image: alfresco/alfresco-share:6.2.0
deploy:
resources:
limits:
cpus: '1'
memory: 1024M
reservations:
cpus: '0.5'
memory: 1024M
environment:
REPO_HOST: "alfresco"
REPO_PORT: "8080"
JAVA_OPTS: "
-Xms896m
-Xmx896m
-Dalfresco.host=localhost
-Dalfresco.port=8080
-Dalfresco.context=alfresco
-Dalfresco.protocol=http"
ports:
- 8080:8080
volumes:
- /data/logs/share:/usr/local/tomcat/logsThanks for your help.