fruitbasket/modules/decisions.nix

34 lines
774 B
Nix
Raw Normal View History

2024-02-03 20:05:52 +01:00
{ config, pkgs, ... }:
let
domain = "decisions.${config.networking.domain}";
in
{
2024-02-03 20:17:06 +01:00
sops.secrets."decisions_env" = { };
2024-02-03 20:05:52 +01:00
virtualisation.oci-containers = {
containers.decicions = {
image = "decisions";
volumes = [
"/var/lib/nextcloud/data/root/files/FSR/protokolle:/protokolle:ro"
];
2024-02-03 20:17:06 +01:00
environmentFiles = [
config.sops.secrets."strukturbot_env".path
];
2024-02-03 20:05:52 +01:00
extraOptions = [ "--network=host" ];
};
};
services.nginx = {
virtualHosts."${domain}" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:5055";
};
extraConfig = ''
auth_pam "LDAP Authentication Required";
auth_pam_service_name "nginx";
'';
};
};
}