server {
    listen 8002 ssl http2;
    listen [::]:8002 ssl http2;

    access_log /var/log/nginx/ushahidi.access.log;
    error_log /var/log/nginx/ushahidi.error.log;

    root /srv/ushahidi;

    location /platform {
        fastcgi_index index.php;
        include fastcgi.conf;
        fastcgi_param SCRIPT_FILENAME $document_root/platform/httpdocs/index.php;
        fastcgi_split_path_info ^(/platform/)(.*)$;
        fastcgi_param PATH_INFO $fastcgi_path_info;
        fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
        fastcgi_pass unix:/run/php/ushahidi.sock;
    }

    location / {
        try_files $uri /index.html;
    }
}
