29 lines
604 B
Nix
29 lines
604 B
Nix
{...}: {
|
|
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";
|
|
};
|
|
};
|
|
}
|