2022-03-15 16:56:05 +01:00
|
|
|
{ config, custom, inputs, pkgs, ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
(import "${inputs.self}/systems/raspi4" {
|
|
|
|
hostname = "raspi-test";
|
|
|
|
ip = "10.7.89.99";
|
2022-03-15 17:18:44 +01:00
|
|
|
inherit inputs pkgs;
|
2022-03-15 16:56:05 +01:00
|
|
|
})
|
|
|
|
(import "${inputs.self}/modules/restic-server-client" {
|
|
|
|
time = "11:30"; inherit config custom inputs pkgs;
|
|
|
|
})
|
|
|
|
"${inputs.self}/modules/docker"
|
2022-05-18 20:57:00 +02:00
|
|
|
"${inputs.self}/modules/haproxy"
|
2022-03-15 16:56:05 +01:00
|
|
|
];
|
2022-05-17 22:38:58 +02:00
|
|
|
|
|
|
|
security.acme = {
|
|
|
|
acceptTerms = true;
|
|
|
|
email = "admin+acme@zweili.ch";
|
|
|
|
};
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
virtualHosts = {
|
|
|
|
"2li.ch" = {
|
2022-05-17 23:03:26 +02:00
|
|
|
serverAliases = [ "www.2li.ch" ];
|
2022-05-17 22:38:58 +02:00
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
2022-05-17 23:03:26 +02:00
|
|
|
listen = [{ port = 4433; addr = "127.0.0.1"; ssl = true; }];
|
2022-05-17 22:38:58 +02:00
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://127.0.0.1:8080";
|
|
|
|
proxyWebsockets = true; # needed if you need to use WebSocket
|
|
|
|
};
|
|
|
|
};
|
|
|
|
"heimdall.2li.ch" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
2022-05-17 23:03:26 +02:00
|
|
|
listen = [{ port = 4433; addr = "127.0.0.1"; ssl = true; }];
|
2022-05-17 22:38:58 +02:00
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://127.0.0.1:8081";
|
|
|
|
proxyWebsockets = true; # needed if you need to use WebSocket
|
|
|
|
};
|
|
|
|
};
|
|
|
|
"rss-bridge.2li.ch" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
2022-05-17 23:03:26 +02:00
|
|
|
listen = [{ port = 4433; addr = "127.0.0.1"; ssl = true; }];
|
2022-05-17 22:38:58 +02:00
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://127.0.0.1:8082";
|
|
|
|
proxyWebsockets = true; # needed if you need to use WebSocket
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2022-03-15 16:56:05 +01:00
|
|
|
}
|