stirlingpdf -> bentopdf

Signed-off-by: Hadi <hadi@example.fr>
This commit is contained in:
Hadi
2026-08-17 15:18:37 +02:00
parent 6953622559
commit f56bf4402c
4 changed files with 21 additions and 7 deletions
+34
View File
@@ -0,0 +1,34 @@
{
config,
lib,
...
}: let
inherit (import ./mk-container.nix {inherit lib config;}) mkContainer;
in {
imports = [
(mkContainer {
name = "bentopdf";
hostIp = "10.233.9.1";
containerIp = "10.233.9.2";
nixosConfig = {...}: {
services.bentopdf = {
enable = true;
domain = "bentopdf";
nginx = {
enable = true;
virtualHost.listen = [
{
addr = "0.0.0.0";
port = 8080;
}
];
};
};
networking.firewall.allowedTCPPorts = [8080];
system.stateVersion = "24.05";
};
})
];
services.cloudflared.tunnels."${config.var.tunnelId}".ingress."pdf.${config.var.domain}" = "http://10.233.9.2:8080";
}