nixos/chatterbox: Add Netdata
This commit is contained in:
parent
58d833c599
commit
6958e86c94
@ -36,7 +36,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
firewall = {
|
firewall = {
|
||||||
tcp.allowed = [ 8008 ];
|
tcp.allowed = [ 19999 8008 ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -45,6 +45,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
netdata.enable = true;
|
||||||
matrix-synapse = {
|
matrix-synapse = {
|
||||||
enable = true;
|
enable = true;
|
||||||
withJemalloc = true;
|
withJemalloc = true;
|
||||||
|
@ -86,13 +86,13 @@ in
|
|||||||
|
|
||||||
"netdata-colony.${lib.my.pubDomain}" =
|
"netdata-colony.${lib.my.pubDomain}" =
|
||||||
let
|
let
|
||||||
hosts = [ "vm" "fw" "ctr" "http" "jackflix-ctr" ];
|
hosts = [ "vm" "fw" "ctr" "http" "jackflix-ctr" "chatterbox-ctr" ];
|
||||||
matchHosts = concatStringsSep "|" hosts;
|
matchHosts = concatStringsSep "|" hosts;
|
||||||
in
|
in
|
||||||
mkMerge [
|
mkMerge [
|
||||||
{
|
{
|
||||||
locations = {
|
locations = {
|
||||||
"= /".return = "301 https://$host/colony/";
|
"= /".return = "301 https://$host/vm/";
|
||||||
"~ /(?<behost>${matchHosts})$".return = "301 https://$host/$behost/";
|
"~ /(?<behost>${matchHosts})$".return = "301 https://$host/$behost/";
|
||||||
"~ /(?<behost>${matchHosts})/(?<ndpath>.*)" = mkMerge [
|
"~ /(?<behost>${matchHosts})/(?<ndpath>.*)" = mkMerge [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user