Configuring Server Settings with Rake Tasks

The following rake tasks are used to configure Faspex server settings related to file storage and nodes.

Configure SMTP Server

The syntax of the command to configure the Faspex SMTP server is as follows:

> asctl faspex:rake aspera:smtp -- [options]
Options Description
--server server The SMTP server address
--port port The SMTP port
--domain domain The email domain name
--tls true|false Whether to use TLS if available
--username username The email username
--password password The email password
--from email The email sender’s address that will appear in the ‘from’ field

For example:

> asctl faspex:rake aspera:smtp -- --auth=open --server=smtp_example.aspera.us --port=25 --domain=aspera.us --tls=ON --username=example@aspera.com --from_name=Faspex --from_email=aspera_faspex@aspera.com

Configure the Server Default Inbox Path

To configure the path for the default inbox, run the following rake task:
> asctl faspex:rake aspera:set_storage_share_directory DIRECTORY="C:\path\to\directory"
Note: The specified path should be relative to the docroot. For example, if the docroot is C:\faspex_packages, and the new default inbox path is C:\faspex_packages\johndoe, specify \johndoe.

Create a Node API User

To create a Node API user mapped to the "faspex" transfer user, run the following rake task:
> asctl faspex:rake aspera:setup_node_user USERNAME="username" PASSWORD="password"

Create or Update a Remote Node

To create and add a remote node or update an existing remote node, run the following rake task:
> asctl faspex:rake aspera:source_server NAME="remote_node_name" HOST="remote_node_hostname" PORT="node_api_port" USERNAME="node_api_username" PASSWORD="node_api_password" USE_SSL=["true"/"false"] VERIFY_SSL=["true"/"false"]
The USE_SSL and VERIFY_SSL arguments are optional and can be set to either "true" or "false".

Update the Directory Path of an Existing File Storage

To create a new file storage or update an existing file storage, run the following rake task:
> asctl faspex:rake aspera:source_directory NODE_NAME="node_name" SOURCE_NAME="file_storage_name" DIRECTORY="C:\path\to\directory"
You can make this directory the default directory by adding --make_default to the command. For example:
> asctl faspex:rake aspera:source_directory NODE_NAME="faspex_node" SOURCE_NAME="packages" DIRECTORY="C:\aspera_files" --make_default
Note: The specified path should be relative to the docroot. For example, if the docroot is C:\faspex_packages, and the new default inbox path is C:\faspex_packages\johndoe, specify \johndoe.