-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make monitoring public with basic auth
Signed-off-by: Joonas Rautiola <[email protected]>
- Loading branch information
Showing
13 changed files
with
166 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,8 @@ | |
|
||
networking.hostName = "build4"; | ||
|
||
services.monitoring = { | ||
metrics.enable = true; | ||
logs.enable = true; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
# SPDX-FileCopyrightText: 2022-2024 TII (SSRC) and the Ghaf contributors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
{ self, lib, ... }: | ||
{ | ||
imports = [ self.nixosModules.service-monitoring ]; | ||
|
||
# Use ci-server as primary DNS and pfsense as secondary | ||
networking.nameservers = [ | ||
"172.18.20.100" | ||
"172.18.20.1" | ||
]; | ||
|
||
services.monitoring = { | ||
metrics.openFirewall = true; | ||
logs.lokiAddress = lib.mkDefault "http://172.18.20.108"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,15 +20,16 @@ | |
qemu-common | ||
ficolo-common | ||
service-openssh | ||
service-nginx | ||
service-monitoring | ||
user-jrautiola | ||
user-cazfi | ||
user-karim | ||
user-barna | ||
user-mika | ||
]); | ||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; | ||
networking.hostName = "himalia"; | ||
|
||
# List packages installed in system profile | ||
environment.systemPackages = with pkgs; [ | ||
git | ||
|
@@ -43,33 +44,12 @@ | |
] | ||
)) | ||
]; | ||
|
||
# docker daemon running | ||
virtualisation.docker.enable = true; | ||
|
||
networking = { | ||
hostName = "himalia"; | ||
}; | ||
|
||
security.acme = { | ||
acceptTerms = true; | ||
defaults.email = "[email protected]"; | ||
}; | ||
|
||
services.monitoring = { | ||
metrics.enable = true; | ||
logs.enable = true; | ||
}; | ||
|
||
services.nginx = { | ||
virtualHosts = { | ||
"himalia.vedenemo.dev" = { | ||
enableACME = true; | ||
forceSSL = true; | ||
default = true; | ||
locations."/" = { | ||
proxyPass = "http://127.0.0.1:3015"; | ||
}; | ||
}; | ||
}; | ||
}; | ||
} |
Oops, something went wrong.