More

1. MySQL configuration

Raysync supports external MySQL databases, providing administrators with more flexible database configuration methods. Click Configuration-MySQL Fill in the correct external database configuration, such as address/port/ account password, click Test Connection, if the test connection passes, click Save, after reboot, the external database will be enabled successfully, and all the background configuration information will be saved in the database.

After opening MySQL, if you need to close it, you need to stop your service. In the configuration file "config.ini" of the server directory Raysync/config, modify "use_mysql = 0" and start the service.

2. Event settings (File Post Proccessing) 

You can set different post-processing events based on different event types. In this way, you can write custom file post-processing logic based on specific business needs and characteristics of transmission tasks, implement custom post-processing logic, improve work efficiency, uniformly manage and monitor transmission tasks, and expand system functions and adaptability. This can better meet user needs and provide more powerful and flexible data transmission and processing capabilities. For example, you can automatically trigger a script or program after the file transfer is completed to perform format conversion, data processing, verification, etc. on the transferred files.

2.1 Add/Edit/Delete Event Notifications

Click Configuration - Add Event, select the event, fill in the event name, executable program path, parameters and completion wait time.

 

Options Function Description
Even type

Trigger other programs when an event is executed.

Event execution

Executable program: When an event occurs, the action/execution program path will be triggered.

HTTP callback: When an event occurs, the system will send a POST request to the URL to your HTTP callback address, and the event notification content will be delivered through the HTTP Body.

Program execution parameters

Program execution parameters

The parameter variables supported by Raysync are:

1. File transfer event type, supported variable: $filepath file path
$filename filename
$filesize file size
$userId user ID
$clientIp client IP
$clientMac client Mac (web page transfer task is not supported)

2. Task transmission event type, supports variables:
$filesize total file size
$userId user ID
$dstPath target path
$srcPath source path
$taskId task ID
$clientIp client IP
$clientMac client Mac (web page transfer task is not supported)

3. Rename, delete, file (folder), create folder, supported variables:
$filepath file size
$filename file name
$userId user ID
$clientIp client IP
$clientMac (use the client to get clientMac)

Click confirm to save. After saving successfully, click Test to check if the settings are successful.

Select the event to view event details, edit and delete it

3. Log

You can configure the log storage path and the storage period for transfer log, operation log, and system log. Log files larger than 1Gb are automatically and compress once a day.

 

4. Link settings

Function Description
Bind the first device when open the share link the shared download link can only be opened on the first device.  If you need to unbind the link, you need to unbind it in [Collaboration]-[Share to donwload]
Email login verification is required when sharing and inviting external personnel Email login verification is required when sharing and inviting to anyone with the link.

 

5. Advanced settings

Function Description
Enable file close When this function is turned on, the file close operation will be executed in the background when the file upload is finished. Check the Enable Delayed Close button and restart the server to take effect
Enable event notifications Support turns off and starts the event notification function. After shutting down, the event notification function will not be executed in the background.
Support multiple IP addresses Support multiple IP addresses. When the server has multiple Ip addresses, you can enable multi-Ip configuration, then users can access through any Ip of the server.
Allow to set process number Support to configure the number of 'raysync-s' processes on the server. The default number of processes is server (CPU cores-2)/2, at least 1.

 

By continuing to use this site, you agree to the use of cookies.