2022-11-03 11:30:04 +01:00
|
|
|
{ custom, hostname, inputs }: { ... }:
|
2022-09-12 18:13:05 +02:00
|
|
|
let
|
|
|
|
domain = "test.2li.ch";
|
|
|
|
in
|
2022-03-15 16:56:05 +01:00
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
(import "${inputs.self}/systems/raspi4" {
|
2022-09-06 20:14:29 +02:00
|
|
|
ip = "10.7.89.150";
|
2022-11-03 10:58:23 +01:00
|
|
|
inherit hostname inputs;
|
2022-03-15 16:56:05 +01:00
|
|
|
})
|
2022-11-04 13:01:07 +01:00
|
|
|
(import "${inputs.self}/modules/docker" { inherit custom; })
|
2022-11-04 13:52:54 +01:00
|
|
|
"${inputs.self}/modules/logs-share"
|
2022-06-20 21:06:55 +02:00
|
|
|
"${inputs.self}/modules/tmux"
|
2022-03-15 16:56:05 +01:00
|
|
|
];
|
2022-09-12 18:13:05 +02:00
|
|
|
services.nginx.virtualHosts."${domain}".locations = {
|
|
|
|
"/".extraConfig = ''
|
|
|
|
try_files $uri $uri/ = 404;
|
|
|
|
'';
|
|
|
|
"/tt-rss/cache".extraConfig = ''
|
|
|
|
aio threads;
|
|
|
|
internal;
|
|
|
|
'';
|
|
|
|
"/tt-rss/backups".extraConfig = ''
|
|
|
|
internal;
|
|
|
|
'';
|
|
|
|
};
|
2022-03-15 16:56:05 +01:00
|
|
|
}
|