Deployment on Linux without Docker

Note: this guide is based on Alpine Linux setups, but you may use them for other distributions as well.

Requirements

DNS Setup

Infrastructure Setup

server {
	listen 80;
	listen [::]:80;
	server_name salty.yourdomain.com;
	
	return 301 https://$host$request_url;
}

server {
	listen 443 ssl;
	listen [::]:443 ssl;
	server_name salty.yourdomain.com;
	
	ssl_certificate /path/to/salty.yourdomain.com/fullchain.pem; # If you use certbot or dehydrated, use the right paths
	ssl_certificate_key /path/to/salty.yourdomain.com/privkey.pem; # Same as above
	
	location / {
		proxy_pass http://127.0.0.1:8000;
	}
}
#!/sbin/openrc-run

depend() {
	need net
	use dns
}

command="/path/to/saltyd"
command_args="--base-url salty.yourdomain.com --bind 0.0.0.0:8000 --primary-domain yourdomain.com --store bitcask://path/to/saltyd_directory/saltyim.db --data /path/to/saltyd_directory/data"
command_background=true
command_user="_salty:_salty"
procname="saltyd"