From e775d5cc776a232412da569fa281cea9d0cb5778 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Sat, 30 Mar 2024 13:34:35 -0300 Subject: [PATCH] Formatting, typos --- .../blog/selfhosted-infrastructure-any%.md | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/content/blog/selfhosted-infrastructure-any%.md b/content/blog/selfhosted-infrastructure-any%.md index f7be868..1a2933e 100644 --- a/content/blog/selfhosted-infrastructure-any%.md +++ b/content/blog/selfhosted-infrastructure-any%.md @@ -10,9 +10,9 @@ A Co-op Cloud speedrun attempt livestream! Brought to you by by libre software. -It'd been so long since [the last Co-op Cloud demo video](https://asciinema.org/a/405836) that, since then, our core command-line tool `abra` had been completely rewritten (from Bash to Golang), and the entire Co-op Cloud project moved from an in-house Autonomic production to a participatory, democractic [Co-op Cloud federation](https://docs.coopcloud.tech/federation/). Definitely time for an update! +It'd been so long since [the last Co-op Cloud demo video](https://asciinema.org/a/405836) that, since then, our core command-line tool `abra` had been completely rewritten (from Bash to Golang), and the entire Co-op Cloud project moved from an in-house Autonomic production to a participatory, democratic [Co-op Cloud federation](https://docs.coopcloud.tech/federation/). Definitely time for an update! -So, Co-op Cloud nerd @3wc picked up the fine tradition of [speedrunning](https://en.wikipedia.org/wiki/Speedrunning) for a "Selfhosted Infrastructure Any%" livestream – attempting to beat their personal best time of 46m17s to deploy chat (Matrix / Fluffychat), microblogging (Hometown), and file-/calendar-sharing (Nextcloud) behind single sign-on (Keycloak). +So, Co-op Cloud nerd `@3wc` picked up the fine tradition of [speedrunning](https://en.wikipedia.org/wiki/Speedrunning) for a "Selfhosted Infrastructure Any%" livestream – attempting to beat their personal best time of 46m17s to deploy chat (Matrix / Fluffychat), microblogging (Hometown), and file-/calendar-sharing (Nextcloud) behind single sign-on (Keycloak). @@ -36,7 +36,7 @@ To avoid needing to screenshare DNS and server configuration, there are DNS reco ### 1 Local setup -``` +```bash apt update && apt install vim curl wget openssh-client -y export EDITOR=vim ``` @@ -45,7 +45,7 @@ export EDITOR=vim The next step is to copy-paste this from the [`abra` installation instructions](https://docs.coopcloud.tech/operators/tutorial/#install-abra): -``` +```bash curl https://install.abra.coopcloud.tech | bash ``` @@ -57,7 +57,7 @@ Then, running `abra autocomplete bash` shows the necessary commands to set us up The next step, on the virtual server, is to run the ["Server set-up" section](https://docs.coopcloud.tech/operators/tutorial/#server-setup) of the Co-op Cloud docs: -``` +```bash ssh speedrun.coopcloud.tech # docker install convenience script wget -O- https://get.docker.com | bash @@ -75,7 +75,7 @@ Lastly, back on the local machine, `abra app server add speedrun.coopcloud.tech` ### 3. Traefik -``` +```bash abra app new traefik abra app config traefik.speedrun.coopcloud.tech abra app deploy traefik.speedrun.coopcloud.tech -c -n @@ -87,7 +87,7 @@ abra app deploy traefik.speedrun.coopcloud.tech -c -n ### 4. Keycloak -``` +```bash abra app new keycloak --secrets abra app config keycloak.speedrun.coopcloud.tech abra app deploy keycloak.speedrun.coopcloud.tech -c -n @@ -99,13 +99,13 @@ Then the Keycloak interface is available at `https://keycloak.speedrun.coopcloud ### 5. Matrix -``` +```bash abra app new matrix-synapse ``` Meanwhile, by this point Keycloak is alive, and ready to create a new "client". Doing so requires specifying a "client ID", and generates a new "client secret", both of which get added: -``` +```bash abra app config matrix-synapse.speedrun.coopcloud.tech --secrets # fill in SSO details abra app secret insert matrix-synapse.speedrun.coopcloud.tech keycloak_client_secret v1 (value) @@ -117,7 +117,7 @@ abra app deploy matrix-synapse.speedrun.coopcloud.tech -n -c ### 6. Fluffychat -``` +```bash abra app new fluffychat abra app config fluffychat.speedrun.coopcloud.tech -n -c ``` @@ -169,7 +169,7 @@ abra app deploy nextcloud.speedrun.coopcloud.tech Annoyingly, Nextcloud needs stuff done in the web interface, and in the PHP config file, for SSO. So, with another new Keycloak client set up, the next step is logging into https://nextcloud.speedrun.coopcloud.tech, going to "Apps", installing "OIDC login by pulsejet", and then editing the config file: -``` +```bash abra app run nextcloud.speedrun.coopcloud.tech apt update && apt install vim vim config/config.php