Nginx for reverse


  • Used Zammad version: 6.3.1
  • Used Zammad installation type: docker-compose
  • Operating system: ubuntu2204
  • Browser + version:

Expected behavior:

change the url and we can access for the website

Actual behavior:

Steps to reproduce the behavior:

change the /opt/zammad/nginx/zammad.conf

I dont know how to change the nginx file for zammad , the default file it confused me .

I using my own nginx.conf that like

server {
    listen 80;
    # 将HTTP请求重定向到HTTPS
    location / {
        return 301 https://$host$request_uri;

server {
    listen 443 ssl;
    ssl_certificate /etc/nginx/ssl/fullchain5.pem;  # 修改为你的SSL证书路径
    ssl_certificate_key /etc/nginx/ssl/privkey5.pem;  # 修改为你的SSL证书私钥路径

    # 强制使用较强的SSL协议和加密套件
    ssl_protocols TLSv1.2 TLSv1.3;
    ssl_ciphers HIGH:!aNULL:!MD5;

    location / {
        proxy_pass;  # 修改为你的后端服务地址
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;

    # 如果需要添加其他配置,请在此处添加

when i docker-compose up ; and change http_type to https;we met the error CRSF auth failed when new user reg for our site ;

I try to change the container 's file for zammad.conf and zammad_ssl.conf by chaning the proxy_set_header X-Forwarded-Proto $scheme to proxy_set_header X-Forwarded-Proto https ; It does’t work ~

I change the docker-compose.yml to original version ,and enable the variale for NGINX_SERVER_SCHEME=https
Now it is worked for that ; I can receive the email that address is https not http;

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.