/fedi-cress-space

gotosocial deployed on fly.io

Primary LanguageShell

fedi.cress.space

about

Setup and update gotosocial.org on fly.io for fedi.cress.space.

This setup has no email support, so administration has to happen via shell (see below).

Some context in my blog: https://madflex.de/setup-fedi-cress-space/

bootstrap / update

To update to a newer version edit bootstrap.sh.

run script:

sh bootstrap.sh

and edit config.yaml if new. For updated version look into added settings!

setup for fly.io

create volume to store sqlite database and attachments

flyctl volumes create gotosocial_data --app fedi-cress-space --region fra --size 1

deploy

flyctl deploy --local-only --region fra

DNS / SSL

Add CNAME records from your.domain to xxx.fly.dev to your DNS provider. And a CNAME for the letsencrypt of fly.io, see https://fly.io/apps/fedi-cress-space/certificates

add user(s) to instance

Login to the instance via ssh

flyctl ssh console

Create a superuser

# create account
/app/gotosocial --config-path /app/config.yaml admin account create --username some_username --email some_email@whatever.org --password 'SOME_PASSWORD'
# activate account
/app/gotosocial --config-path /app/config.yaml admin account confirm --username some_username
# give super user rights to account
/app/gotosocial --config-path /app/config.yaml admin account promote --username some_username

First two steps to add "normal" users.