NGNIX Configuration

ActivityTimeline with reverse proxy

  • 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:


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;

   }

}

ActivityTimeline Server Context Path

  • Q: How can I set a context path for ActivityTimeline, so it wouldn't be available at :8040 but instead :8040/activitytimeline?
  • A: Please follow the steps:
    1. Open <INSTALLATION_FOLDER>/activitytimeline/webapps/ folder

    2. Rename ROOT to activitytimeline

    3. Restart ActivityTimeline