mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-08-21 18:55:47 +02:00
f56bf4402c
Signed-off-by: Hadi <hadi@example.fr>
35 lines
798 B
Nix
35 lines
798 B
Nix
{
|
|
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";
|
|
}
|