feat(odin): add wallabag, read it later.
This commit is contained in:
parent
266dbeb854
commit
02120faef8
2 changed files with 34 additions and 0 deletions
|
@ -4,5 +4,6 @@
|
|||
./secrets.nix
|
||||
./searx.nix
|
||||
./syncyomi.nix
|
||||
./wallabag.nix
|
||||
];
|
||||
}
|
||||
|
|
33
modules/servers/odin/wallabag.nix
Normal file
33
modules/servers/odin/wallabag.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{...}: {
|
||||
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";
|
||||
};
|
||||
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";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue