Commit ef66082
Mattia Tadini
Third mirror, at home, and the machines find it on their own
deb.skillfishos.com is live over HTTPS through the home Nginx Proxy Manager,
serving a copy pushed from the release container. All three mirrors serve the
identical Release, checked by hash rather than assumed.
It goes last in the list on purpose: the upstream bandwidth of a home line does
not carry normal traffic, but as a fallback it is worth as much as the others.
The interesting part is that nobody has to be told about it. A machine that knew
only the first two ran the weekly refresher, fetched the signed list from OVH,
verified it against the archive key it already had, and rewrote its own list with
three entries. Watched it happen on the Fujitsu rather than assuming it would.
Addresses moved to the reserved range: 192.168.5.210 for releases and .211 for
the mirror, with .210 to .220 kept for SkillFishOS. The DHCP pool ends at .40 so
there is nothing to collide with.
A change of address drags more behind it than it looks. All of these pointed at
the old one and had to move with it: the two port-forward rules for the torrent
port on the router, the from= restriction on the mirror's authorised key, the
same restriction on the board's key for --dalla-scheda, the addresses written
inside three scripts, and APT_HOST in the credentials file outside the
repository, which is the one that bit — the publish failed on it twice.
Two guards earned their keep along the way. The sync warned that the mirror had
not received the copy and let the publish finish, because the other two already
had everything; that was a missing host key, not a real outage. And the gh-pages
sync refused to connect to an address whose host key it did not know, which is
exactly what it should do — the key was registered only after comparing its
fingerprint with the one already known for that machine.1 parent 838b8d9 commit ef66082
4 files changed
Lines changed: 61 additions & 4 deletions
File tree
- scripts
- system
- etc/apt/mirrors
- usr/local/bin
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
381 | | - | |
382 | 380 | | |
383 | 381 | | |
384 | 382 | | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
385 | 402 | | |
386 | 403 | | |
387 | 404 | | |
| |||
1062 | 1079 | | |
1063 | 1080 | | |
1064 | 1081 | | |
1065 | | - | |
| 1082 | + | |
1066 | 1083 | | |
1067 | 1084 | | |
1068 | 1085 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
0 commit comments