diff --git a/modules/servers/odin/default.nix b/modules/servers/odin/default.nix index fbc5473..dfb6fbc 100644 --- a/modules/servers/odin/default.nix +++ b/modules/servers/odin/default.nix @@ -3,5 +3,6 @@ ./proxitok.nix ./secrets.nix ./searx.nix + ./syncyomi.nix ]; } diff --git a/modules/servers/odin/syncyomi.nix b/modules/servers/odin/syncyomi.nix new file mode 100644 index 0000000..4e40953 --- /dev/null +++ b/modules/servers/odin/syncyomi.nix @@ -0,0 +1,29 @@ +{...}: { + virtualisation.oci-containers.containers.syncyomi = { + image = "ghcr.io/syncyomi/syncyomi:latest"; + autoStart = true; + ports = [ + "8282:8282" + ]; + volumes = [ + "/var/lib/syncyomi:/config" + ]; + }; + + services.traefik.dynamicConfigOptions.http = { + services.syncyomi.loadBalancer.servers = [ + { + url = "http://localhost:8282"; + } + ]; + + routers.syncyomi = { + rule = "Host(`syncyomi.cronyakatsuki.xyz`)"; + tls = { + certResolver = "porkbun"; + }; + service = "syncyomi"; + entrypoints = "websecure"; + }; + }; +}