https://github.com/mfa/fedi-cress-space
gotosocial deployed on fly.io
https://github.com/mfa/fedi-cress-space
Last synced: 9 months ago
JSON representation
gotosocial deployed on fly.io
- Host: GitHub
- URL: https://github.com/mfa/fedi-cress-space
- Owner: mfa
- Created: 2022-11-06T18:00:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-27T18:31:15.000Z (over 1 year ago)
- Last Synced: 2025-01-11T07:35:07.060Z (over 1 year ago)
- Language: Shell
- Size: 43 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# fedi.cress.space
## about
Setup and update [gotosocial.org](https://gotosocial.org) on [fly.io](https://fly.io) for [fedi.cress.space](https://fedi.cress.space).
This setup has no email support, so administration has to happen via shell (see below).
Some context in my blog:
## 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](https://fly.io), see
## 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.