feat(server-setup): replace nginx with caddy
Test / test (push) Successful in 1m14s

Assisted-by: GLM 5.3 Flash
This commit is contained in:
2026-09-29 00:32:44 +02:00
parent 37e06d090c
commit 108a166ee0
3 changed files with 63 additions and 11 deletions
+19
View File
@@ -124,6 +124,25 @@ my %defaults = parse_args();
is($defaults{dry_run}, 0, 'args: dry run is off by default');
@ARGV = @saved;
# ---------------------------------------------------------------------------
# The base package catalogue
# ---------------------------------------------------------------------------
# The proxy of the collection is caddy everywhere; nginx left the baseline when
# sglang-deploy.pl moved to Caddy, and the name survives only in its own legacy
# clean-up.
check((grep { $_ eq 'caddy' } base_packages()) == 1, 'packages: caddy is a base package');
check((grep { $_ eq 'nginx' } base_packages()) == 0, 'packages: nginx is not');
is(join('|', base_packages()),
'nano|curl|wget|htop|tmux|rsync|caddy|openssl|jq|fastfetch',
'packages: the whole list, in order');
my %openeuler_gaps = unpackaged_for('openeuler');
is(exists $openeuler_gaps{caddy} ? 'yes' : 'no', 'yes',
'packages: the openEuler gap is named in the unpackaged map');
is(scalar(unpackaged_for('fedora')) // 0, 0, 'packages: Fedora has no unpackaged entry');
is(scalar(unpackaged_for('centos')) // 0, 0,
'packages: CentOS Stream has no unpackaged entry, EPEL carries caddy');
# ---------------------------------------------------------------------------
# The command runner
# ---------------------------------------------------------------------------