[durruti] add ep3-bs

This commit is contained in:
2023-05-17 13:38:39 +02:00
parent 1045604ee9
commit 907e829d0e
2 changed files with 30 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, inputs, ... }:
with lib;
@@ -19,11 +19,32 @@ with lib;
];
imports = [
inputs.ep3-bs.nixosModules.ep3-bs
../modules/malobeo_user.nix
../modules/sshd.nix
../modules/minimal_tools.nix
];
services.ep3-bs = {
enable = true;
in_production = false;
mail = {
type = "smtp-tls";
address = "dynamicdiscorddresden@systemli.org";
host = "mail.systemli.org";
user = "dynamicdiscorddresden@systemli.org";
password = "E4XaTzv5hi0ClsMRtzy58uQ6D";
auth = "plain";
};
database = {
user = "malodbuser";
password = "aAljwdlaKQWhdakwLHdalkhwdhalaWLKhdaoiu";
};
};
system.stateVersion = "22.11"; # Did you read the comment?
}

View File

@@ -26,7 +26,7 @@ in
{
assertions = [
{
assertion = cfg.host_ip == "";
assertion = cfg.host_ip != "";
message = ''
You need to specify host_ip of the nix container
'';
@@ -36,7 +36,13 @@ in
services.nginx.virtualHosts."tasklist.malobeo.org" = {
forceSSL = true;
enableACME= true;
locations."/".proxyPass = "http://10.233.1.2:8080";
locations."/".proxyPass = "http://${cfg.host_ip}:8080";
};
services.nginx.virtualHosts."booking.dynamicdiscord.de" = {
forceSSL = true;
enableACME= true;
locations."/".proxyPass = "http://${cfg.host_ip}:80";
};
};