Merge branch 'main' into drafts

This commit is contained in:
John Bowdre 2024-06-12 20:50:40 -05:00
commit fde5633cd1
10 changed files with 45 additions and 14 deletions

View file

@ -43,6 +43,10 @@ jobs:
chmod 644 ~/.ssh/known_hosts chmod 644 ~/.ssh/known_hosts
- name: Build with Hugo - name: Build with Hugo
run: HUGO_REMOTE_FONT_PATH=${{ secrets.REMOTE_FONT_PATH }} hugo --minify --environment preview run: HUGO_REMOTE_FONT_PATH=${{ secrets.REMOTE_FONT_PATH }} hugo --minify --environment preview
- name: Insert 404 page
run: |
mkdir -p public/bunnycdn_errors
cp public/404/index.html public/bunnycdn_errors/404.html
- name: Highlight with Torchlight - name: Highlight with Torchlight
run: | run: |
npm i @torchlight-api/torchlight-cli npm i @torchlight-api/torchlight-cli

View file

@ -45,6 +45,10 @@ jobs:
chmod 644 ~/.ssh/known_hosts chmod 644 ~/.ssh/known_hosts
- name: Build with Hugo - name: Build with Hugo
run: HUGO_REMOTE_FONT_PATH=${{ secrets.REMOTE_FONT_PATH }} hugo --minify run: HUGO_REMOTE_FONT_PATH=${{ secrets.REMOTE_FONT_PATH }} hugo --minify
- name: Insert 404 page
run: |
mkdir -p public/bunnycdn_errors
cp public/404/index.html public/bunnycdn_errors/404.html
- name: Highlight with Torchlight - name: Highlight with Torchlight
run: | run: |
npm i @torchlight-api/torchlight-cli npm i @torchlight-api/torchlight-cli

View file

@ -10,32 +10,39 @@ reply: true
categories: Tips # Backstage, ChromeOS, Code, Self-Hosting, VMware categories: Tips # Backstage, ChromeOS, Code, Self-Hosting, VMware
tags: tags:
- android - android
- api
- automation
- caddy - caddy
- certs
- chromeos - chromeos
- cloud
- cloudflare - cloudflare
- containers
- crostini - crostini
- docker - docker
- gcp - gcp
- homeassistant - homeassistant
- hugo - hugo
- iac
- javascript - javascript
- kubernetes - kubernetes
- linux - linux
- meta - meta
- networking
- packer - packer
- powercli - powercli
- powershell - powershell
- proxmox
- python - python
- regex - regex
- salt - salt
- security
- selfhosting - selfhosting
- shell - shell
- tailscale - tailscale
- tasker
- terraform - terraform
- vmware - vmware
- windows - windows
- wireguard
- wsl - wsl
--- ---

View file

@ -8,11 +8,11 @@ numberOfRelatedPosts = 5
indexTitle = ".-. ..- -. - .. -- . - . .-. .-. --- .-." indexTitle = ".-. ..- -. - .. -- . - . .-. .-. --- .-."
robots = [ bad_robots = [
"AdsBot-Google", "AdsBot-Google",
"Amazonbot", "Amazonbot",
"anthropic-ai", "anthropic-ai",
"Applebot", "Applebot-Extended",
"AwarioRssBot", "AwarioRssBot",
"AwarioSmartBot", "AwarioSmartBot",
"Bytespider", "Bytespider",

View file

@ -1,7 +1,7 @@
--- ---
title: "/changelog" title: "/changelog"
date: "2024-05-26T21:19:08Z" date: "2024-05-26T21:19:08Z"
lastmod: "2024-06-06" lastmod: "2024-06-07T22:41:44Z"
description: "Maybe I should keep a log of all my site-related tinkering?" description: "Maybe I should keep a log of all my site-related tinkering?"
featured: false featured: false
toc: false toc: false
@ -11,7 +11,7 @@ categories: slashes
*High-level list of config/layout changes to the site.* *High-level list of config/layout changes to the site.*
**2024-06-06:** **2024-06-06:**
- Migrate hosting from Neocities to Bunny CDN - Migrate hosting from [Neocities to Bunny CDN](/further-down-the-bunny-hole/)
**2024-05-30:** **2024-05-30:**
- Fix broken styling for taxonomy (categories/tags) feeds - Fix broken styling for taxonomy (categories/tags) feeds
@ -20,8 +20,8 @@ categories: slashes
**2024-05-29:** **2024-05-29:**
- Display post descriptions (if set) on archive pages; otherwise fall back to summaries - Display post descriptions (if set) on archive pages; otherwise fall back to summaries
- Add /slashes archive page - Add [/slashes](/slashes/) archive page
- Add /slashes to top menu, add /about - Add /slashes to top menu, add [/about](/about)
**2024-05-27:** **2024-05-27:**
- Replace "powered by" links with slashpages - Replace "powered by" links with slashpages

View file

@ -1,7 +1,7 @@
--- ---
title: "Further Down the Bunny Hole" title: "Further Down the Bunny Hole"
date: 2024-06-06 date: 2024-06-06
# lastmod: 2024-06-06 lastmod: "2024-06-08T02:57:35Z"
description: "After a few weeks of weird configuration glitches, I decided to migrate my static site from Neocities to Bunny CDN. Here's how I did it." description: "After a few weeks of weird configuration glitches, I decided to migrate my static site from Neocities to Bunny CDN. Here's how I did it."
featured: false featured: false
toc: true toc: true
@ -35,7 +35,7 @@ Once again, I gave the zone a name (`my-pull-zone`). I left the origin settings
After admiring the magnificence of my new pull zone, I clicked the menu button at the top right and select **Copy Pull Zone ID** and made a note of that as well. After admiring the magnificence of my new pull zone, I clicked the menu button at the top right and select **Copy Pull Zone ID** and made a note of that as well.
### GitHub Action ### GitHub Action
I found the [bunnycdn-storage-deploy](https://github.com/ayeressian/bunnycdn-storage-deploy) Action which makes it easy to upload content to a Bunny storage zone and also purge the cache of the pull zone at the same time. For that to work, I had to add a few new[action secrets](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions) to my GitHub repo: I found the [bunnycdn-storage-deploy](https://github.com/ayeressian/bunnycdn-storage-deploy) Action which makes it easy to upload content to a Bunny storage zone and also purge the cache of the pull zone at the same time. For that to work, I had to add a few new [action secrets](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions) to my GitHub repo:
| Name | Sample Value | Description | | Name | Sample Value | Description |
|--------------------------|-------------------------------|--------------------------------------------------------------------------------------------------------------| |--------------------------|-------------------------------|--------------------------------------------------------------------------------------------------------------|
@ -45,7 +45,7 @@ I found the [bunnycdn-storage-deploy](https://github.com/ayeressian/bunnycdn-sto
| `BUNNY_STORAGE_PASSWORD` | `7cb197e5-[...]-ad35820c0de8` | Get it from the storage zone's FTP & API Access page | | `BUNNY_STORAGE_PASSWORD` | `7cb197e5-[...]-ad35820c0de8` | Get it from the storage zone's FTP & API Access page |
| `BUNNY_ZONE_ID` | `12345` | The pull zone ID you copied earlier | | `BUNNY_ZONE_ID` | `12345` | The pull zone ID you copied earlier |
Then I just updated [my deployment workflow](https://github.com/jbowdre/runtimeterror/blob/main/.github/workflows/deploy-prod.yml) to swap the Bunny action in place of the Neocities one: Then I just updated [my deployment workflow](https://github.com/jbowdre/runtimeterror/blob/main/.github/workflows/deploy-prod.yml) to swap the Bunny action in place of the Neocities one (and [adjust the 404 page for bunny](https://support.bunny.net/hc/en-us/articles/360000332631-How-do-I-configure-a-custom-404-page-for-my-storage-zone)):
```yaml ```yaml
# torchlight! {"lineNumbers":true} # torchlight! {"lineNumbers":true}
@ -96,6 +96,14 @@ jobs:
chmod 644 ~/.ssh/known_hosts # chmod 644 ~/.ssh/known_hosts #
- name: Build with Hugo - name: Build with Hugo
run: HUGO_REMOTE_FONT_PATH=${{ secrets.REMOTE_FONT_PATH }} hugo --minify run: HUGO_REMOTE_FONT_PATH=${{ secrets.REMOTE_FONT_PATH }} hugo --minify
- name: Insert 404 page # [tl! **:4]
run: | # [tl! ++:1,1 --:2,1]
mkdir -p public/bunnycdn_errors
cp public/404/index.html public/not_found.html
cp public/404/index.html public/bunnycdn_errors/404.html
- name: Insert 404 page # [tl! ++:-1,1 reindex(-1)]
run: |
cp public/404/index.html public/not_found.html
- name: Highlight with Torchlight - name: Highlight with Torchlight
run: | run: |
npm i @torchlight-api/torchlight-cli npm i @torchlight-api/torchlight-cli

View file

@ -9,8 +9,8 @@ categories: Tips # Projects, Code
tags: tags:
- homelab - homelab
- networking - networking
- proxmox
- tailscale - tailscale
- vpn
--- ---
I've spent the past two years in love with [Tailscale](https://tailscale.com/), which builds on the [secure and high-performance Wireguard VPN protocol](/cloud-based-wireguard-vpn-remote-homelab-access/) and makes it [really easy to configure and manage](/secure-networking-made-simple-with-tailscale/). Being able to easily (and securely) access remote devices as if they were on the same LAN is pretty awesome to begin with, but Tailscale is packed with an ever-expanding set of features that can really help to streamline your operations too. Here are three of my favorites. I've spent the past two years in love with [Tailscale](https://tailscale.com/), which builds on the [secure and high-performance Wireguard VPN protocol](/cloud-based-wireguard-vpn-remote-homelab-access/) and makes it [really easy to configure and manage](/secure-networking-made-simple-with-tailscale/). Being able to easily (and securely) access remote devices as if they were on the same LAN is pretty awesome to begin with, but Tailscale is packed with an ever-expanding set of features that can really help to streamline your operations too. Here are three of my favorites.

View file

@ -4,7 +4,7 @@
<h1 class="about__title">{{ .title }}&nbsp;<a target="_blank" href="/feed.xml" aria-label="RSS"><i class="fa-solid fa-square-rss"></i></a>&nbsp;</h1> <h1 class="about__title">{{ .title }}&nbsp;<a target="_blank" href="/feed.xml" aria-label="RSS"><i class="fa-solid fa-square-rss"></i></a>&nbsp;</h1>
{{ partial "tagline.html" . }} {{ partial "tagline.html" . }}
<br> <br>
<a href="about"><i class="fa-regular fa-user"></i></a>&nbsp;<a href="/about">{{ site.Params.Author.username }}</a> <a href="/about/"><i class="fa-regular fa-user"></i></a>&nbsp;<a href="/about/">{{ site.Params.Author.name }}</a>
</div> </div>
{{ end }} {{ end }}
<ul class="aside__social-links"> <ul class="aside__social-links">

View file

@ -34,6 +34,9 @@
<link rel="stylesheet" href="{{ "css/risotto.css" | absURL }}"> <link rel="stylesheet" href="{{ "css/risotto.css" | absURL }}">
<link rel="stylesheet" href="{{ "css/custom.css" | absURL }}"> <link rel="stylesheet" href="{{ "css/custom.css" | absURL }}">
<!-- add pride bar for june -->
<link rel="stylesheet" href="https://cdn.pride.codes/css/bar_body.css">
{{ if eq .Site.Params.analytics true }} {{ if eq .Site.Params.analytics true }}
<!-- tinylytics --> <!-- tinylytics -->
<script src="https://tinylytics.app/embed/z4bwvaCBkF39NcDDLsRu.js?kudos=🎉&webring=avatars" defer></script> <script src="https://tinylytics.app/embed/z4bwvaCBkF39NcDDLsRu.js?kudos=🎉&webring=avatars" defer></script>

View file

@ -1,8 +1,13 @@
Sitemap: {{ .Site.BaseURL }}/sitemap.xml Sitemap: {{ .Site.BaseURL }}/sitemap.xml
# hello robots [^_^]
# let's be friends <3
User-agent: * User-agent: *
Disallow: Disallow:
{{ range .Site.Params.robots }}
# except for these bots which are not friends:
{{ range .Site.Params.bad_robots }}
User-agent: {{ . }} User-agent: {{ . }}
{{- end }} {{- end }}
Disallow: / Disallow: /