serve nexus flatpak repo
This commit is contained in:
parent
c9771b61cf
commit
16f59f80f7
4 changed files with 45 additions and 21 deletions
|
|
@ -1,21 +0,0 @@
|
||||||
{
|
|
||||||
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
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
34
clients/quadraticserver/nexus/default.nix
Normal file
34
clients/quadraticserver/nexus/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
{ pkgs, ... }: {
|
||||||
|
services.caddy.virtualHosts."nexus.federated.nexus".extraConfig = ''
|
||||||
|
handle_path /flatpak/* {
|
||||||
|
@meta path /nexus.flatpakref /nexus.flatpakrepo
|
||||||
|
handle @meta {
|
||||||
|
root * ${
|
||||||
|
pkgs.linkFarm "nexus-flatpak-meta" {
|
||||||
|
"nexus.flatpakref" = ./nexus.flatpakref;
|
||||||
|
"nexus.flatpakrepo" = ./nexus.flatpakrepo;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_server
|
||||||
|
}
|
||||||
|
|
||||||
|
handle {
|
||||||
|
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
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
}
|
||||||
8
clients/quadraticserver/nexus/nexus.flatpakref
Normal file
8
clients/quadraticserver/nexus/nexus.flatpakref
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
[Flatpak Ref]
|
||||||
|
Title=Nexus
|
||||||
|
Name=nexus.federated.nexus
|
||||||
|
Branch=stable
|
||||||
|
Url=https://nexus.federated.nexus/flatpak/
|
||||||
|
SuggestRemoteName=nexus
|
||||||
|
IsRuntime=false
|
||||||
|
RuntimeRepo=https://dl.flathub.org/repo/flathub.flatpakrepo
|
||||||
3
clients/quadraticserver/nexus/nexus.flatpakrepo
Normal file
3
clients/quadraticserver/nexus/nexus.flatpakrepo
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
[Flatpak Repo]
|
||||||
|
Title=Nexus
|
||||||
|
Url=https://nexus.federated.nexus/flatpak/
|
||||||
Loading…
Reference in a new issue