Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Q: Does ActivityTimeline work with reverse proxy?
  • A: Yes, ActivityTimeline works behind the reverse proxy like Apache HTTPD or nginx. It is important to make sure the proxy server conveys the request headers (that include underscores in their names). This includes SYNCHRONIZER_TOKEN and SYNCHRONIZER_URI for CSRF security. 


Nginx config sample:


Panel

server {


........


underscores_in_headers on;

location / {

        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;

        proxy_pass_request_headers      on;


        proxy_pass http://127.0.0.1:8040;

   }

}

...