fix(deploy): the home end dials the instance's server by its address (ADR 0032, D11)
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:
parent
f015792927
commit
82fa7aec1b
1 changed files with 37 additions and 21 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue