dotfiles/system/nixos/voyager.nix

29 lines
677 B
Nix
Raw Normal View History

2023-07-01 14:17:40 +00:00
{
2023-07-11 09:08:34 +00:00
virtualisation.oci-containers.containers.voyager = {
image = "ghcr.io/aeharding/voyager:latest";
2023-07-01 14:17:40 +00:00
ports = [ "127.0.0.1:8014:5314" ];
extraOptions = [
"--label=com.centurylinklabs.watchtower.enable=true"
"--label=io.containers.autoupdate=registry"
];
};
2023-07-11 09:08:34 +00:00
services.nginx.virtualHosts."voyager.daniel.sx" = {
listenAddresses = [ "100.64.10.2" "[fd7a:115c:a1e0:1010::2]" ];
2023-07-01 14:17:40 +00:00
quic = true;
http3 = true;
onlySSL = true;
useACMEHost = "daniel.sx";
2023-07-03 08:26:35 +00:00
extraConfig = ''
client_max_body_size 32m;
'';
2023-07-01 14:17:40 +00:00
locations."/" = {
recommendedProxySettings = true;
proxyPass = "http://127.0.0.1:8014";
};
};
}