Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Service: FTP Services https://gitlab.com/ft-neo/ftp-services

Info

/wiki/spaces/FI/pages/378503180

Setup Steps: (Devops Guide)

...

Note: companyId in above configuration is the actual company ID from TransDB->Company table

Commands & Other reference for devops

...

Create user with home directory --> sudo useradd -m username

...

Create password for the user --> sudo passwd username

...

Create the directory structure similar to the existing user 

...

Change ownership of the home directory to root --> sudo chown root:root homedirectory

...

Create the upload directory

...

Create files directory within the upload directory

...

mkdir archived_requests createTrip deleteTrip erred_requests open_requests processed_requests

...

Change ownership of new directories to the new user

...

Change the ownership of the files inside the home directory --> sudo chown -R user:user directory

...

...

Add the following in this file path --> sudo vi /etc/ssh/sshd_config 

...

Match User username

...

ChrootDirectory /home/username/usernameuploads

...

X11Forwarding no

...

PasswordAuthentication yes

...

AllowTcpForwarding no

...

ForceCommand internal-sftp

...

Replace username with the user created and restart the ssh service --> sudo service sshd restart

Setup Steps: (Techops cum Product Guide)

  1. Setup a GET job for trip creation as below based on the API version selected for client with necessary schedule (eg: 10 mins)

http://ftp-service/ftp/create_trip/v2/rilftp

OR

http://ftp-service/ftp/create_trip/v5/rilftp

  1. The job created will keep on polling for new files & process them if received (Details in next section)

  2. Share the FTP account details with the client (Client may access the folder manually through FTP client like FileZilla or through SAP etc

  3. Know the API version for trip creation v2 / v5 (specific to client requirement) and share the relevant template with the client 

  4. It is advisable to ask the client to give unique names to the files while uploading to FT server

  5. Give necessary training w.r.t. File format etc on integration environment if necessary

FTP Service in action (Assuming above 2 setup details are followed & completed)

...

  1. Client may poll over any of the directories if it needs to pull the processed / errored files & use / process at his end.

  2. Exact process is followed for trip closure. Just that we do not need a separate job for trip closure. After the job processes the create-trip files, it picks up the close-trip files & process.

Info

/wiki/spaces/FI/pages/378503180