enable flurry via a let in to also change the hosts
This commit is contained in:
parent
776b673a1c
commit
c2a32bf8ec
1 changed files with 43 additions and 32 deletions
|
|
@ -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,37 +290,42 @@
|
||||||
recommendedBrotliSettings = true;
|
recommendedBrotliSettings = true;
|
||||||
sslCiphers = "AES256+EECDH:AES256+EDH:!aNULL";
|
sslCiphers = "AES256+EECDH:AES256+EDH:!aNULL";
|
||||||
|
|
||||||
virtualHosts = {
|
virtualHosts = lib.mkMerge [
|
||||||
"noa.voorwaarts.nl" = {
|
({
|
||||||
forceSSL = true;
|
"noa.voorwaarts.nl" = {
|
||||||
enableACME = true;
|
forceSSL = true;
|
||||||
extraConfig = extra;
|
enableACME = true;
|
||||||
locations."/" = {
|
extraConfig = extra;
|
||||||
proxyWebsockets = true;
|
locations."/" = {
|
||||||
proxyPass = "http://192.168.42.5:8000";
|
proxyWebsockets = true;
|
||||||
|
proxyPass = "http://192.168.42.5:8000";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
"images.noa.voorwaarts.nl" = proxy "noa.voorwaarts.nl" "http://192.168.42.5:2283/";
|
"images.noa.voorwaarts.nl" = proxy "noa.voorwaarts.nl" "http://192.168.42.5:2283/";
|
||||||
"maintenance.noa.voorwaarts.nl" = proxy "noa.voorwaarts.nl" "http://192.168.42.5:5000/";
|
"maintenance.noa.voorwaarts.nl" = proxy "noa.voorwaarts.nl" "http://192.168.42.5:5000/";
|
||||||
"map.noa.voorwaarts.nl" = proxy "noa.voorwaarts.nl" "http://127.0.0.1:8123/";
|
"map.noa.voorwaarts.nl" = proxy "noa.voorwaarts.nl" "http://127.0.0.1:8123/";
|
||||||
|
|
||||||
"itepastra.nl" = {
|
"itepastra.nl" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
extraConfig = extra;
|
extraConfig = extra;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
proxyPass = "http://192.168.42.5:9001/";
|
proxyPass = "http://192.168.42.5:9001/";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
"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,12 +338,15 @@
|
||||||
"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"
|
[
|
||||||
"calendar.itepastra.nl"
|
"locked.itepastra.nl"
|
||||||
"home.itepastra.nl"
|
"calendar.itepastra.nl"
|
||||||
"flurry.itepastra.nl"
|
"home.itepastra.nl"
|
||||||
];
|
]
|
||||||
|
++ [
|
||||||
|
(lib.mkIf enableFlurry "flurry.itepastra.nl")
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue