CDR export delete_url

How should the delete_url for CDR export be set for when the CDR server is a different server?

The documentation does not describe this.

it should point to web server that service CDR export files

1 Like

I did some testing with Postman, and it turns out it was nginx blocking the delete, not Yeti.

Got it working perfecly by creating /var/www/cdr on the CDR DB server. :grinning_face:

In case this helps someone.

mkdir /var/www/cdr
chown www-data:www-data /var/www/cdr
setfacl -dm u:www-data:rxw /var/www/cdr/

nginx:

server {
        listen 8080;
        server_name _;
        root /var/www/cdr;

        dav_methods PUT DELETE MKCOL COPY MOVE;

        allow <yeti_server_ip>/32;
        deny all;

        location /x-redirect/cdr_export {
                alias /var/www/cdr;
        }
}

yeti_web.xml

cdr_export:
  dir_path: "/var/www/cdr"
  delete_url: http://<cdr_server_ip>:8080/

/etc/nginx/sites-enabled/yeti

 location /x-redirect/cdr_export {
            internal;
            proxy_pass http://<cdr_server_ip>:8080;
        }