I am trying to run zammad in my Coolify instance where I have running caddy container Caddy Docker. I checked several topics, documentation, proxy example in github for running behind proxy. But I am still getting CSRF token verification failed! when I am opening zammad from another browser or machine. I have setup caddy container and zammad on same network, pointed zammad to caddy ip with RAILS_TRUSTED_PROXIES, set up NGINX_SERVER_NAME, NGINX_SERVER_SCHEME=https, VIRTUAL_HOST, but still nothing helps. Did anyone manage to run zammad behind caddy proxy in docker container? I am already out of ideas what can be missconfigured Will be grateful for any help. Thank you!
maybe you should share your config and nginx profile for that ; last week we deploy zammad by docker-compose. first time we also met the CSRF when configrate the fqdn and set http_type ;
we check for the following thing:
1.zammad_http_type : must be https
2.fqdn : we use our own domain
we resolved it by using the .env for NGINX_SERVER_SCHEME=https
This is a free community without any guarantee to receive a working solution etc. Please be patient, most of us are helping the community in their spare time. If you require commercial grade support, you can get that at zammad.com.
I don’t know caddy, i only use nginx for zammad , you use nginx and caddy both? may you should try nginx first…
nginx also can support https ;
also , i set the zammad fqdn in web not in the env ;
my env only have:
NGINX_SERVER_SCHEME=https
What I want to explain here is that my method is not the method recommended in the official documents. I figured it out by myself. There may be certain problems. It is for reference only.
and i use my own nginx profile and passthrough to docker containner.