update documentations, remove bonfire

This commit is contained in:
Ruben 2025-08-05 00:42:35 -05:00
commit e50dbd6fed
Signed by: sneexy
GPG key ID: 8ECFA045E63BC583
4 changed files with 7 additions and 28 deletions

View file

@ -35,7 +35,7 @@ fi
# check that all required utils are installed # check that all required utils are installed
function check_applications { function check_applications {
local all_required_applications=("bash" "wget" "tar" "unzip" "zstd" "backblaze-b2") local all_required_applications=("bash" "wget" "tar" "unzip" "zstd" "backblaze-b2" "jq")
for application in "${all_required_applications[@]}"; do for application in "${all_required_applications[@]}"; do
if [ ! -x "$(command -v $application)" ]; then if [ ! -x "$(command -v $application)" ]; then
@ -366,16 +366,6 @@ function system_backup {
cp $backup_local_folder/mastodon/compose.yaml $backup_working_directory/mastodon cp $backup_local_folder/mastodon/compose.yaml $backup_working_directory/mastodon
cp $backup_local_folder/mastodon/.env $backup_working_directory/mastodon cp $backup_local_folder/mastodon/.env $backup_working_directory/mastodon
# ============================================================================= # =============================================================================
# bonfire social
echo "${blue}Pulling in Bonfire...${normal}"
mkdir -p $backup_working_directory/bonfire
# database
postgres_backup postgres-db-1 bonfire bonfire $backup_working_directory
# configs, extra
cp $backup_local_folder/bonfire/compose.yaml $backup_working_directory/bonfire
cp $backup_local_folder/bonfire/.env $backup_working_directory/bonfire
cp $backup_local_folder/bonfire/.env.secrets $backup_working_directory/bonfire
# =============================================================================
# pds # pds
echo "${blue}Pulling in PDS...${normal}" echo "${blue}Pulling in PDS...${normal}"
mkdir -p $backup_working_directory/pds mkdir -p $backup_working_directory/pds

View file

@ -1,8 +1,6 @@
# Notes # Postgresql
## Postgresql ## Creating a user and the database
### Creating a user and the database
To create a new user within postgresql, enter the shell via `helperbot --psql`. To create a new user within postgresql, enter the shell via `helperbot --psql`.
@ -23,6 +21,8 @@ GRANT ALL PRIVILEGES ON DATABASE <db name> TO <user>;
GRANT ALL ON SCHEMA public TO <user>; GRANT ALL ON SCHEMA public TO <user>;
``` ```
## Deleting a user and their database
If you ever need to delete a user and their database: If you ever need to delete a user and their database:
```sql ```sql
DROP DATABASE <db name>; DROP DATABASE <db name>;

View file

@ -103,10 +103,11 @@ Now that we're mostly set up and secure, let's install all of the packages requi
- `unzip` - `unzip`
- `npm` - `npm`
- `git` - `git`
- `jq`
- `zsh` - `zsh`
```bash ```bash
sudo apt install neovim htop btop zram-tools rsync backblaze-b2 unzip git zsh sudo apt install neovim htop btop zram-tools rsync backblaze-b2 unzip git jq zsh
``` ```
Docker installation is another process, please refer to their links to do it. Docker installation is another process, please refer to their links to do it.

View file

@ -17,20 +17,8 @@ synth.download's services currently consists of **2** different virtual machines
- also serves as the main caddy machine (static sites, etc) - also serves as the main caddy machine (static sites, etc)
- ...and also serves various other *tiny* services like alternative frontends - ...and also serves various other *tiny* services like alternative frontends
*original* virtual machine planning, which may go unused:
- [`cerium`](./cerium)
- also runs on the intel-based server! this vm runs everything that isn't exactly considered "important". this may include things such as:
- alternative frontends
- and any other services and other related things.
- meant to be self-maintained and automated so we don't have to keep an eye on it at all times and not worry about it.
- [`synthnix`](./synthnix)
- our pubnix vm for our tilde members. runs on the amd-based server, kept relatively quiet.
and as for other things: and as for other things:
- [`Caddyfile`](./Caddyfile)
- the "main" caddyfile that serves everything from all of our vms and configs to one.
- [`notes`](./notes) - [`notes`](./notes)
- personal notes/knowledge base while setting things up, may contain useful information for others. - personal notes/knowledge base while setting things up, may contain useful information for others.
- [`helperbot`](./helperbot) - [`helperbot`](./helperbot)