update documentations, remove bonfire
This commit is contained in:
parent
5c0e0adecb
commit
e50dbd6fed
4 changed files with 7 additions and 28 deletions
12
helperbot
12
helperbot
|
|
@ -35,7 +35,7 @@ fi
|
|||
|
||||
# check that all required utils are installed
|
||||
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
|
||||
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/.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
|
||||
echo "${blue}Pulling in PDS...${normal}"
|
||||
mkdir -p $backup_working_directory/pds
|
||||
|
|
|
|||
|
|
@ -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`.
|
||||
|
||||
|
|
@ -23,6 +21,8 @@ GRANT ALL PRIVILEGES ON DATABASE <db name> 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:
|
||||
```sql
|
||||
DROP DATABASE <db name>;
|
||||
|
|
@ -103,10 +103,11 @@ Now that we're mostly set up and secure, let's install all of the packages requi
|
|||
- `unzip`
|
||||
- `npm`
|
||||
- `git`
|
||||
- `jq`
|
||||
- `zsh`
|
||||
|
||||
```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.
|
||||
12
readme.md
12
readme.md
|
|
@ -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)
|
||||
- ...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:
|
||||
|
||||
- [`Caddyfile`](./Caddyfile)
|
||||
- the "main" caddyfile that serves everything from all of our vms and configs to one.
|
||||
- [`notes`](./notes)
|
||||
- personal notes/knowledge base while setting things up, may contain useful information for others.
|
||||
- [`helperbot`](./helperbot)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue