feat: refactor the modules/servers directory.
This commit is contained in:
parent
4e783c052b
commit
8b754d3a7e
69 changed files with 61 additions and 62 deletions
41
modules/servers/per-server/odin/services/wallabag.nix
Normal file
41
modules/servers/per-server/odin/services/wallabag.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{...}: {
|
||||
virtualisation.oci-containers.containers.wallabag = {
|
||||
image = "docker.io/wallabag/wallabag:latest";
|
||||
autoStart = true;
|
||||
ports = [
|
||||
"8181:80"
|
||||
];
|
||||
environment = {
|
||||
"SYMFONY__ENV__DOMAIN_NAME" = "https://wallabag.cronyakatsuki.xyz";
|
||||
};
|
||||
labels = {
|
||||
"io.containers.autoupdate" = "registry";
|
||||
};
|
||||
volumes = [
|
||||
"/var/lib/wallabag/data:/var/www/wallabag/data"
|
||||
"/var/lib/wallabag/images:/var/www/wallabag/web/assets/images"
|
||||
];
|
||||
};
|
||||
|
||||
services.traefik.dynamicConfigOptions.http = {
|
||||
services.wallabag.loadBalancer.servers = [
|
||||
{
|
||||
url = "http://localhost:8181";
|
||||
}
|
||||
];
|
||||
|
||||
routers.wallabag = {
|
||||
rule = "Host(`wallabag.cronyakatsuki.xyz`)";
|
||||
tls = {
|
||||
certResolver = "porkbun";
|
||||
};
|
||||
service = "wallabag";
|
||||
entrypoints = "websecure";
|
||||
};
|
||||
};
|
||||
|
||||
services.restic.backups = {
|
||||
local.paths = ["/var/lib/wallabag"];
|
||||
server.paths = ["/var/lib/wallabag"];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue