fix(deploy): the home end dials the instance's server by its address (ADR 0032, D11)
All checks were successful
CI / check (push) Successful in 41m12s
CI / deploy (push) Successful in 56s

A tunnel that fails to come up takes Jellyfin's internet with it, as
linuxserver/wireguard's client mode deletes the default route. Named by
learn.halkyon.eu, the endpoint needed DNS to come up, which the home end
starting or waking hasn't always got yet; by its address the tunnel comes
up whatever the network does. Closes ADR 0032's open point.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
Tizian 「ティツィアーン」 2026-10-31 15:10:46 +01:00
commit 82fa7aec1b
Signed by: raisondetredev
GPG key ID: 07F6FCF405488B64

View file

@ -146,6 +146,16 @@ void main() {
expect(wireguard['ports'], ['127.0.0.1:8096:8096']);
});
test("dials the instance's server by its address, so that the tunnel "
'comes up before the network does (D11)', () {
final config = File('deploy/home-jellyfin/wg0.conf.example')
.readAsLinesSync();
final endpoint = config.singleWhere(
(line) => line.startsWith('Endpoint'),
);
expect(endpoint, 'Endpoint = 89.58.53.154:51820');
});
test('tells Jellyfin its public address, never a home one', () {
final jellyfin = services['jellyfin'] as YamlMap;
final environment = jellyfin['environment'] as YamlMap;