You are reading content from Scuttlebutt
@Hendrik Peter %RpXFnP/qWZGGaqCoEs+6DhD9BycWNKBjPUCN0m5rX20=.sha256
Re: %LUNvSiFNI

I wrote the landing page myself real quick.
You can find it here: https://git.picodevelopment.nl/ssbc/pico-pub
I didn't bother making css files or branching the JS of, it's just a simple lander.

If you want to use it, make sure to edit the colors a bit, find a new background pic (https://unsplash.com/ is a good place for pics), that kind of stuff.

In the future I could create codes dynamically (run a small ruby-script that calls the ssb-server for an invite), but this works just fine right now (with a key usable for 500 times).

Then, stick the files somewhere on your VPS and follow these steps:

  1. Register a domain to your server (A record, or CNAME if you route through cloudflare)
  2. Wait a bit until the domain works
  3. install Nginx on your machine.
  4. Create the following file (replace sub.example.com with your site)

sudo vim /etc/nginx/sites-enabled/sub.example.com

server {
  server_name sub.example.com www.sub.example.com;
  listen 80;

  location / {
    root /home/your_user_name/folder/to/your/landing;
    index index.html;
    try_files $uri $uri/ =404;
  }
}
  1. safe your file, then type sudo service nginx restart
  2. Test it out!
  3. Firewall things (Ubuntu Example).
    Read the entire block and the comments before running the commands!

sudo ufw default deny (Close all ports by design)
sudo ufw allow ssh (allow ssh traffic)
sudo ufw allow 6789 (or whatever your custom SSH port is)
sudo ufw allow "Nginx HTTPS"
sudo ufw allow "Nginx HTTP"
sudo ufw allow 8008 (your pub-server port)

sudo ufw enable (Danger zone! don't close your ssh session after this, but open a second terminal and check if you can still connect)
sudo ufw reload
  1. Serve your site over free https ;) by going to https://certbot.eff.org/ and following the install step. (make sure to have an nginx config like step 4, cerbot will stumble if it sees weird things in that file later)
  2. Run the following command to create a cert for your nginx site:
sudo certbot --nginx -d sub.example.com -d www.sub.example.com
  1. Fill out your details, always redirect http to https and you're done! (you could do some extra's in nginx, but this will get you started)
User has not chosen to be hosted publicly
User has not chosen to be hosted publicly
@Hendrik Peter %XNtYy5e0ItLUf+IkQC4RXAYAoJCD6YwNCK1EUgZo7HI=.sha256

Nice!! I was asleep, but that looks pretty good @ConnivingMonkey!

Join Scuttlebutt now