enable flurry via a let in to also change the hosts

This commit is contained in:
Noa Aarts 2025-03-08 09:52:54 +01:00
parent 776b673a1c
commit c2a32bf8ec
Signed by: noa
GPG key ID: 1850932741EFF672

View file

@ -11,6 +11,9 @@
config, config,
... ...
}: }:
let
enableFlurry = false;
in
{ {
imports = [ imports = [
# Include the results of the hardware scan. # Include the results of the hardware scan.
@ -132,7 +135,7 @@
}; };
"flurry" = { "flurry" = {
enable = false; enable = enableFlurry;
description = "Pixelflut server"; description = "Pixelflut server";
serviceConfig = { serviceConfig = {
ExecStart = "${ ExecStart = "${
@ -287,7 +290,8 @@
recommendedBrotliSettings = true; recommendedBrotliSettings = true;
sslCiphers = "AES256+EECDH:AES256+EDH:!aNULL"; sslCiphers = "AES256+EECDH:AES256+EDH:!aNULL";
virtualHosts = { virtualHosts = lib.mkMerge [
({
"noa.voorwaarts.nl" = { "noa.voorwaarts.nl" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
@ -313,11 +317,15 @@
}; };
"calendar.itepastra.nl" = proxy "itepastra.nl" "http://[::1]:29341"; "calendar.itepastra.nl" = proxy "itepastra.nl" "http://[::1]:29341";
"flurry.itepastra.nl" = proxy "itepastra.nl" "http://127.0.0.1:3000";
# home-assistant proxy # home-assistant proxy
"home.itepastra.nl" = proxy "itepastra.nl" "http://[::1]:8123"; "home.itepastra.nl" = proxy "itepastra.nl" "http://[::1]:8123";
}; })
(lib.mkIf enableFlurry {
"flurry.itepastra.nl" = proxy "itepastra.nl" "http://127.0.0.1:3000";
})
];
}; };
}; };
@ -330,11 +338,14 @@
"maintenance.noa.voorwaarts.nl" "maintenance.noa.voorwaarts.nl"
"map.noa.voorwaarts.nl" "map.noa.voorwaarts.nl"
]; ];
"itepastra.nl".extraDomainNames = [ "itepastra.nl".extraDomainNames =
[
"locked.itepastra.nl" "locked.itepastra.nl"
"calendar.itepastra.nl" "calendar.itepastra.nl"
"home.itepastra.nl" "home.itepastra.nl"
"flurry.itepastra.nl" ]
++ [
(lib.mkIf enableFlurry "flurry.itepastra.nl")
]; ];
}; };
}; };