mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-05-20 21:32:33 +02:00
28b7923e47
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
24 lines
616 B
Nix
24 lines
616 B
Nix
{ config, lib, ... }:
|
|
let
|
|
inherit (import ./mk-container.nix { inherit lib config; }) mkContainer;
|
|
in
|
|
{
|
|
imports = [
|
|
(mkContainer {
|
|
name = "stirling-pdf";
|
|
hostIp = "10.233.9.1";
|
|
containerIp = "10.233.9.2";
|
|
nixosConfig = { ... }: {
|
|
services.stirling-pdf = {
|
|
enable = true;
|
|
environment."SERVER_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";
|
|
}
|