add nexus flatpak reverse proxy
This commit is contained in:
parent
637346d649
commit
a3f2841652
1 changed files with 19 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue