2021-02-20 22:32:00 +00:00
|
|
|
{ pkgs, config, ...}:
|
|
|
|
|
|
|
|
{
|
|
|
|
containers.hasenloch = {
|
|
|
|
autoStart = true;
|
|
|
|
privateNetwork = true;
|
|
|
|
hostAddress = "192.168.100.5";
|
|
|
|
localAddress = "192.168.100.7";
|
|
|
|
|
|
|
|
config = { pkgs, config2, ...}: {
|
|
|
|
services.engelsystem = {
|
|
|
|
enable = true;
|
2021-03-24 18:19:33 +00:00
|
|
|
package = pkgs.engelsystem.overrideAttrs (oldAttrs: rec {
|
2021-04-02 14:38:31 +00:00
|
|
|
version = "main-c48664b";
|
2021-03-24 18:19:33 +00:00
|
|
|
src = pkgs.fetchzip {
|
2021-04-02 14:38:31 +00:00
|
|
|
url = "https://schwe.by/files/engelsystem3.zip";
|
|
|
|
sha256 = "1rfbbl69llb4nd6kpz1zqs9aqlfj3qkrp4qc58mzcs1ng3px30b9";
|
2021-03-24 18:19:33 +00:00
|
|
|
};
|
|
|
|
});
|
2021-04-09 20:49:37 +00:00
|
|
|
domain = "himmel.infra4future.de";
|
2021-02-20 22:32:00 +00:00
|
|
|
|
|
|
|
config = {
|
2021-04-09 20:49:37 +00:00
|
|
|
url = "https://himmel.infra4future.de";
|
2021-02-20 22:32:00 +00:00
|
|
|
trusted_proxies = [ "${config.containers.hasenloch.hostAddress}/31" ];
|
|
|
|
rewrite_urls = true;
|
|
|
|
|
|
|
|
app_name = "Hasenloch";
|
|
|
|
|
|
|
|
footer_items = {
|
2021-04-03 06:00:59 +00:00
|
|
|
FAQ = "https://di.c3voc.de/r2r:heaven#how_to_engeln";
|
|
|
|
Contact = "mailto:himmel@veb-netzgestaltung.net";
|
2021-02-20 22:32:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
signup_requires_arrival = true;
|
2021-03-24 18:28:22 +00:00
|
|
|
enable_dect = true;
|
|
|
|
enable_pronoun = true;
|
|
|
|
enable_tshirt_size = false;
|
|
|
|
night_shifts.enabled = false;
|
|
|
|
autoarrive = true;
|
|
|
|
|
|
|
|
theme = 15;
|
2021-02-20 22:32:00 +00:00
|
|
|
|
|
|
|
database = {
|
|
|
|
database = "engelsystem";
|
|
|
|
host = "localhost";
|
|
|
|
username = "engelsystem";
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
email = {
|
|
|
|
driver = "smtp";
|
|
|
|
encryption = "tls";
|
|
|
|
from = {
|
|
|
|
address = "noreply@infra4future.de";
|
|
|
|
name = "divoc Hasenloch";
|
|
|
|
};
|
|
|
|
host = "mail.hacc.space";
|
|
|
|
password = {
|
|
|
|
_secret = "/var/keys/engelsystem/mail";
|
|
|
|
};
|
|
|
|
port = 587;
|
|
|
|
username = "noreply@infra4future.de";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 ];
|
|
|
|
networking.firewall.enable = false;
|
|
|
|
services.coredns = {
|
|
|
|
enable = true;
|
|
|
|
config = ''
|
|
|
|
.:53 {
|
|
|
|
forward . 1.1.1.1
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.nginx.recommendedProxySettings = true;
|
2021-04-09 20:49:37 +00:00
|
|
|
services.nginx.virtualHosts."himmel.infra4future.de" = {
|
2021-02-20 22:32:00 +00:00
|
|
|
locations."/".proxyPass = "http://" + config.containers.hasenloch.localAddress;
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.nat.enable = true;
|
|
|
|
networking.nat.internalInterfaces = ["ve-hasenloch"];
|
|
|
|
networking.nat.externalInterface = "enp6s0";
|
|
|
|
|
|
|
|
}
|
|
|
|
|