1
0
Fork 0
dotfiles/container/proxitok/default.nix

54 lines
1.4 KiB
Nix
Raw Normal View History

2023-03-20 17:06:11 +01:00
{ config, lib, ... }:
2023-02-28 14:55:57 +01:00
{
virtualisation.oci-containers.containers = {
proxitok-web = {
image = "ghcr.io/pablouser1/proxitok:master";
dependsOn = [ "proxitok-signer" ];
ports = [ "127.0.0.1:8005:80" ];
environmentFiles = [ config.age.secrets.proxitok-environment.path ];
volumes = [
"/etc/container-proxitok/cache:/cache"
];
extraOptions = [
"--label=com.centurylinklabs.watchtower.enable=true"
"--label=io.containers.autoupdate=registry"
];
};
2023-02-28 14:55:57 +01:00
proxitok-signer = {
image = "ghcr.io/pablouser1/signtok:master";
extraOptions = [
"--label=com.centurylinklabs.watchtower.enable=true"
"--label=io.containers.autoupdate=registry"
];
2023-02-28 14:55:57 +01:00
};
};
2023-03-20 20:34:56 +01:00
systemd.services.podman-proxitok-web.serviceConfig = {
2023-03-24 22:30:50 +01:00
TimeoutStopSec = lib.mkForce 5;
2023-03-20 20:34:56 +01:00
};
2023-03-20 17:04:58 +01:00
systemd.services.podman-proxitok-signer.serviceConfig = {
2023-03-24 22:30:50 +01:00
TimeoutStopSec = lib.mkForce 5;
2023-03-20 17:04:58 +01:00
};
2023-02-28 15:22:22 +01:00
systemd.tmpfiles.rules = [
"d /etc/container-proxitok/cache 0755 33 33"
];
services.nginx.virtualHosts."tictac.daniel.sx" = {
listenAddresses = [ "100.113.242.85" "[fd7a:115c:a1e0:ab12:4843:cd96:6271:f255]" ];
2023-04-03 15:03:52 +02:00
quic = true;
http3 = true;
2023-03-06 10:21:34 +01:00
onlySSL = true;
useACMEHost = "daniel.sx";
2023-02-28 14:55:57 +01:00
locations."/" = {
recommendedProxySettings = true;
proxyPass = "http://127.0.0.1:8005";
2023-02-28 14:55:57 +01:00
};
};
}