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#!/bin/ksh
 2daemon="/usr/local/salty/saltyd"
 3daemon_user="_saltyd"
 4daemon_flags="-b 0.0.0.0:8000 -d /path/to/salty/data -u https://salty.example.com -p example.com -s bitcask://path/to/salty/salty.db"
 5
 6. /etc/rc.d/rc.subr
 7
 8rc_bg=YES
 9rc_reload=NO
10
11rc_cmd "$1"

The script has to have the execution bit set (mode 0755)