Commit graph

54 commits

Author SHA1 Message Date
Chandler Swift 44b11c451b
Update factorio to 2.0.41 2025-03-16 12:38:04 -05:00
Chandler Swift 577177e0f1
bert: Simplify factorio allowUnfreePredicate 2025-03-16 12:15:54 -05:00
Chandler Swift 14e899476b
bert: Update Factorio to 2.0.32 (current stable) 2025-03-06 13:07:23 -06:00
Chandler Swift 766dc0011d
bert: Refactor factorio service 2025-03-04 16:58:23 -06:00
Chandler Swift d45446b410
Upgrade navidrome to remediate auth bypass bug
Ref: https://github.com/navidrome/navidrome/security/advisories/GHSA-c3p4-vm8f-386p
2025-02-22 19:29:42 -06:00
Chandler Swift b700b28160
bert: Add nau-sidewalks.chandlerswift.com 2025-02-14 19:29:31 -06:00
Chandler Swift 6a86383de9
bert: Add sharontrahan.com redirect 2025-02-14 19:17:43 -06:00
Chandler Swift 646eb50eba
bert: Redirect all troop352.us URLs to /
This is for backwards compatibility with the old site, which had e.g.
the calendar at `/calendar/`, etc.
2025-02-14 19:16:28 -06:00
Chandler Swift 8e73fab30f
bert: Add troop352.us 2025-02-14 19:16:28 -06:00
Chandler Swift efb6bc7b95
bert: Add stjohnscccc.com manual redirect page 2025-02-08 12:20:16 -06:00
Chandler Swift 3928a5b44d
bert: Rephrase site-not-found message
This gives me a bit of repudiability in case someone decides to point
someunsavorydomain.net at my server -- I don't want to automatically
respond indicating "yep, this is mine!"
2025-02-08 12:16:53 -06:00
Chandler Swift a0ed02d158
bert: Add www redirect for stjohnscccc.org 2025-02-08 12:13:12 -06:00
Chandler Swift 384f965b3b
bert: Refactor stjohnscccc.org config 2025-02-08 12:13:12 -06:00
Chandler Swift 54c4b7136d
bert: redir stjohnscccc.org/downloads -> downloads/ 2025-02-08 11:39:04 -06:00
Chandler Swift 71368d5081
bert: Add (ancient) blog.chandlerswift.com redirects
Cool URLs don't change, as they say; let's keep these working!
2025-02-07 22:05:19 -06:00
Chandler Swift 437097a71b
bert: Add chandlerswift.com cloudflare compat redir
Cloudflare Pages, the previous home of this site, strips the `.html`
suffix from filenames (no small part of the reason this site was moved!)
e.g. a recent post would be served on

https://chandlerswift.com/2024/11/12/install-lineageos-on-lemonade

and not on

https://chandlerswift.com/2024/11/12/install-lineageos-on-lemonade.html

and the latter would be redirected to the former.

To me, this seems like a perversion of file paths for no good reason,
and it seems that a not-insubstantial chunk of the internet agrees:

https://community.cloudflare.com/search?q=%22.html%22%20%23developers%3Acloudflare-pages

This has been repeatedly considered "feature not bug" (despite examples
of use cases the feature breaks), e.g.

https://github.com/cloudflare/workers-sdk/issues/1488

This PR used AI assistance (and manual verification) for Caddyfile
syntax:

https://chatgpt.com/share/67a6d4e5-a464-800c-9c4d-910faa53b2dd
2025-02-07 21:53:37 -06:00
Chandler Swift 510672f779
bert: Add gotosocial on social.chandlerswift.com 2025-02-07 21:50:13 -06:00
Chandler Swift f2e7d24b2f
bert: Add chandlerswift.com 2025-02-07 21:48:24 -06:00
Chandler Swift 86c09a00cc
bert: Update to bannergen v0.2.0 2025-01-16 17:10:44 -06:00
Chandler Swift ccc8708a6b
bert: Rename mount so systemd doesn't escape hyphen 2025-01-14 23:31:40 -06:00
Chandler Swift 4c6606be31
bert: Add owntracks-recorder 2025-01-14 23:31:40 -06:00
Chandler Swift 9b6c2fdc3e
bert: Add bannergen 2025-01-14 18:06:19 -06:00
Chandler Swift f6246c84db
bert: README: Remove Caddy note obsolete with 24.11 release 2024-11-30 23:41:54 -06:00
Chandler Swift 41ad7feade
bert: Fix content-type header on http default responder 2024-11-30 22:32:26 -06:00
Chandler Swift 898a98ef1e
bert: Serve swiftgang.net on www instead 2024-11-30 12:55:38 -06:00
Chandler Swift e02c3832a9
bert: Add lawrencedeerclub.chandlerswift.com 2024-11-20 11:28:28 -06:00
Chandler Swift 3379ea34d7
bert: Remove misplaced bigbird note from README
Don't write documentation tired, kids! I thought I was missing this, so
I had added it…to the wrong file, while similar notes were already
present in the file where they belonged!
2024-11-19 23:37:55 -06:00
Chandler Swift 690f64ae80
bert: Update README 2024-11-18 22:25:48 -06:00
Chandler Swift 0ebcaee45d
bert: Add isaacswift.com and isaac user 2024-11-18 19:42:40 -06:00
Chandler Swift 4a5c10849c
bert: Add preview.chandlerswift.com forwarder 2024-11-13 00:43:48 -06:00
Chandler Swift 0f4b0295c8
bert: add 0hats.com
Future direction: Have a systemd timer that regens this automatically,
and updates the index page accordingly.
2024-11-12 10:56:04 -06:00
Chandler Swift 9e80802351
bert: Enable pureserendipityweddings.com redirect 2024-11-12 10:56:03 -06:00
Chandler Swift 9e3c4ee13e
bert: Add handle_errors clause to all sites
It looks like this was CLOSED WONTFIX: How can we _possibly_ know that
upon an error, the developer might want us to send an indication of that
error??!!1! Snark aside (mine and his): it looks like there's not a
great way to enable sane error behavior globally :/

https://caddy.community/t/handling-errors-globally/17174/2

In the future, I should probably make this a snippet or something.
2024-11-12 10:56:03 -06:00
Chandler Swift 542b9dd68d
bert: Add home.chandlerswift.com/sheets 2024-11-12 10:56:03 -06:00
Chandler Swift 5271fe9965
bert: Add navidrome 2024-11-12 10:56:03 -06:00
Chandler Swift e9e8913fe6
bert: Add public mount from bigbird 2024-11-12 10:56:03 -06:00
Chandler Swift 0b821f6111
bert: Disable networkmanager
I wasn't actually using this anyway? 🤷
2024-11-12 10:56:03 -06:00
Chandler Swift 5c296f9a84
bert: Enable push-to-create in Forgejo 2024-11-12 00:47:55 -06:00
Chandler Swift 0c20daac0e
bert: Add harborpaperco.com hosting 2024-11-12 00:47:23 -06:00
Chandler Swift cdc6b0cb2a
Remove obtrusive Caddy footer from browse template 2024-11-06 01:44:36 -06:00
Chandler Swift 9fdf26756e
Make Caddy's browse template explicit 2024-11-06 01:44:04 -06:00
Chandler Swift 23ad3c1a47
Fix config for stjohnscccc.org 2024-11-06 01:22:11 -06:00
Chandler Swift 8c4a6a3c23
Add katherineandchandler.com 2024-11-06 00:00:51 -06:00
Chandler Swift c72358ace8
bert: Disable ssh password auth 2024-11-06 00:00:16 -06:00
Chandler Swift fee81ed3c7
Move /srv/* into /srv/www/* 2024-11-05 23:50:59 -06:00
Chandler Swift 0e4a2c5b9d
Add forgejo 2024-11-05 23:50:58 -06:00
Chandler Swift 8afb236c52
Add swiftgang.net 2024-11-05 23:32:46 -06:00
Chandler Swift c993aa7c25
Add files.chandlerswift.com 2024-11-04 19:27:23 -06:00
Chandler Swift 3237237cdd
Reduce bootloader timeout for faster boot 2024-11-02 00:26:21 -05:00
Chandler Swift 3c8150a5aa
Fix stage2 IPv6 networking
When `ip=dhcp` is passed as a kernel param (which I assume, but don't
know for sure, just gets passed to systemd and probably then to
systemd-networkd or NetworkManager or whatever does the networking in
the initrd?), IPv6 doesn't come up. With the param, bad IPv6:

```text
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 3c:52:82:00:46:d6 brd ff:ff:ff:ff:ff:ff
    altname enp0s31f6
    inet 192.168.1.20/24 brd 192.168.1.255 scope global eno1
       valid_lft forever preferred_lft forever
    inet6 2601:441:8301:8af7:94e1:4d4c:73c2:ac31/64 scope global temporary dynamic
       valid_lft 322763sec preferred_lft 86330sec
    inet6 fd0a:8f9f:6f83:0:3e52:82ff:fe00:46d6/64 scope global dynamic mngtmpaddr proto kernel_ra
       valid_lft forever preferred_lft forever
    inet6 2601:441:8301:8af7:3e52:82ff:fe00:46d6/64 scope global dynamic mngtmpaddr proto kernel_ra
       valid_lft 322763sec preferred_lft 322763sec
    inet6 fe80::3e52:82ff:fe00:46d6/64 scope link proto kernel_ll
       valid_lft forever preferred_lft forever
```

whereas without the param I get good (whatever that means) addresses:

```text
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 3c:52:82:00:46:d6 brd ff:ff:ff:ff:ff:ff
    altname enp0s31f6
    inet 192.168.1.20/24 brd 192.168.1.255 scope global dynamic noprefixroute eno1
       valid_lft 43188sec preferred_lft 43188sec
    inet6 fd0a:8f9f:6f83::33b/128 scope global dynamic noprefixroute
       valid_lft 43190sec preferred_lft 43190sec
    inet6 2601:441:8301:8af7::33b/128 scope global dynamic noprefixroute
       valid_lft 43190sec preferred_lft 43190sec
    inet6 2601:441:8301:8af7:b572:fc6c:ba27:dcdb/64 scope global temporary dynamic
       valid_lft 322965sec preferred_lft 86235sec
    inet6 2601:441:8301:8af7:f3f0:df23:a6bb:7d25/64 scope global dynamic mngtmpaddr noprefixroute
       valid_lft 322965sec preferred_lft 322965sec
    inet6 fd0a:8f9f:6f83:0:485e:f55d:fa1d:cef4/64 scope global temporary dynamic
       valid_lft 604790sec preferred_lft 86235sec
    inet6 fd0a:8f9f:6f83:0:7851:1417:807:f017/64 scope global mngtmpaddr noprefixroute
       valid_lft forever preferred_lft forever
    inet6 fe80::eb0c:1983:24a5:3e42/64 scope link noprefixroute
       valid_lft forever preferred_lft forever
```

I'm honestly not entirely sure what this _should_ look like, but what I
_do_ know is that in the "bad" configuration, SSH takes an extra ~10s to
connect as it has to wait for two ~5s `No route to host` timeouts:

```console
[chandler@oscar:~]$ ssh -v root@bert
OpenSSH_9.8p1, OpenSSL 3.0.14 4 Jun 2024
debug1: Reading configuration data /home/chandler/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 5: Applying options for *
debug1: Connecting to bert [fd0a:8f9f:6f83::33b] port 22.
debug1: connect to address fd0a:8f9f:6f83::33b port 22: No route to host
debug1: Connecting to bert [2601:441:8301:8af7::33b] port 22.
debug1: connect to address 2601:441:8301:8af7::33b port 22: No route to host
debug1: Connecting to bert [192.168.1.20] port 22.
debug1: Connection established.
```

Future work: What _should_ my IPv6 config look like? Is there any way I
can keep network config stable between the initrd and the booted system?
Why is this recommended against?

> The default is false when systemd is enabled in initrd, because the
> systemd-networkd documentation suggests it.
2024-11-02 00:26:21 -05:00