Linux VPS Hosting¶
How to run HTS Enterprise on a Linux VPS/Server¶
Requirements¶
- VPS running Ubuntu 20.04
- 100GB disk space depending on the number of markets you want to support
- 4 cores minimum, recommended 8+
Install TradeServer Enterprise¶
Log in to https://haasonline.com/account/downloads to access the self-guided installer for Linux.
You will be provided with a command to install TradeServer Enterprise. Copy and run the command in your terminal. The installer will automatically download and install TradeServer Enterprise, prompting you for your license email and credentials during the setup process.
Configure SSH to be secure¶
If you're only using password authentication please be sure that password is very secure. Ideally you should be using public key authentication to ssh to this server.
To use public key authentication follow these steps:
We recommend naming the key haasonline_ent_id_rsa. You can use a passphrase if you'd like to have passwordless authentication, but a password on your key is more secure.
Save the generated two files (haasonline_ent_id_rsa and haasonline_ent_id_rsa.pub) to your local machine. You can use Transmit or WinSCP to connect over SSH to transfer files.
Now you must copy the public key to your ~/.ssh/authorized_keys file:
touch ~/.ssh/authorized_keys
chmod -R go= ~/.ssh
cat ~/.ssh/haasonline_ent_id_rsa.pub >> ~/.ssh/authorized_keys
If you are on macOS or linux, you can update your local ssh config to use this key for this server. Just open ~/.ssh/config with your favorite editor and add a host for it:
Host the.ip.address.of.server
User my_ssh_username
IdentityFile ~/.ssh/haasonline_ent_id_rsa # Or update this path to where you saved it on your local machine.
Test that you are able to SSH to your server WITHOUT using your SSH password. Once you have confirmed this is working, you can disable password authentication:
sudo vim /etc/ssh/sshd_config
Find PasswordAuthentication and ensure no is next to it:
Press escape, then type :wq and press enter to save the changes.
Now restart SSH so the changes are used:
sudo systemctl restart ssh
Running TradeServer Enterprise¶
Once the installation is complete, the TradeServer Enterprise service will start automatically. You can access the interface by navigating to http://127.0.0.1:8090/ if you haven't configured a custom domain or SSL certificate.
Tunnel to HTS enterprise to access locally¶
macOS or Linux¶
ssh -L 8090:127.0.0.1:8090 -L 8092:127.0.0.1:8092 user@yourserver
Windows¶
You can configure Putty to have tunnels. Simply edit the configuration and go to Connection -> SSH -> Tunnel.
You want to forward two ports:
- 8090 to 8090
- 8092 to 8092
You can now access HTS Enterprise on your local machine! Just navigate to http://127.0.0.1:8090