-
Notifications
You must be signed in to change notification settings - Fork 0
FTP Server
Because the resulting files of a simulation can be rather large, an FTP server needs to be set up on the server running the web interface. When the client finishes a calculation, the results will be transferred to this FTP server and will then be handled by the server application.
There are no special requirements for the FTP server, so feel free to use any software you feel comfortable with.
The usual process would be to create a user on the server, which will be chroot'ed to a specific directory.
For this guide we will use the path /var/scattportd for the user scattport and a password of foobar.
To add an additional layer of security, you might want to revoke the right to delete files inside the FTP server's configuration. Only the server itself will delete files after they were processed.
Edit the file application/config/scattport.php.
There you will find the variable $config['ftp_base'].
This parameter has to match the directory you specified for the FTP user (i.e. in this example /var/scattportd).
The server will now use this directory to look for new results.
When you set up the client, you need to specify the same values (username, password) you used when setting up the FTP server (i.e. in this example username: scattport with a password of foobar).
If you want to edit the values later-on you can edit the file settings.properties in the client's directory (e.g.: /opt/scattportd/).