add nexus flatpak reverse proxy

This commit is contained in:
Henry Hiles 2026-09-28 16:57:19 -04:00
commit a3f2841652
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -1,4 +1,21 @@
{
services.caddy.virtualHosts."nexus.federated.nexus".extraConfig =
"redir https://git.federated.nexus/Nexus/nexus{uri} permanent";
services.caddy.virtualHosts."nexus.federated.nexus".extraConfig = ''
handle_path /flatpak/* {
rewrite * /nexus{path}
reverse_proxy https://henry-hiles.github.io {
header_up Host {upstream_hostport}
}
@immutable path /objects/* /deltas/*
header @immutable >Cache-Control "public, max-age=31536000, immutable"
@mutable path /summary /summary.sig /refs/* /appstream/*
header @mutable >Cache-Control "no-cache"
}
handle {
redir https://git.federated.nexus/Nexus/nexus{uri} permanent
}
'';
}