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

Requirements

DNS Setup

Infrastructure Setup

 1server {
 2 listen 80;
 3 listen [::]:80;
 4 server_name salty.example.com;
 5 
 6 return 301 https://$host$request_url;
 7}
 8
 9server {
10 listen 443 ssl;
11 listen [::]:443 ssl;
12 server_name salty.example.com;
13 
14 ssl_certificate /path/to/salty.example.com/fullchain.pem; # If you use certbot or dehydrated, use the right paths
15 ssl_certificate_key /path/to/salty.example.com/privkey.pem; # Same as above
16 
17 location / {
18  proxy_pass http://127.0.0.1:8000;
19 }
20}
 1#!/sbin/openrc-run
 2
 3depend() {
 4 need net
 5 use dns
 6}
 7
 8command="/path/to/saltyd"
 9command_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"
10command_background=true
11command_user="_salty:_salty"
12procname="saltyd"