mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 11:41:34 +01:00
vps-monitor: Expose ntfy completely publicly again
This commit is contained in:
parent
e3b572ef96
commit
ca35081ddc
1 changed files with 3 additions and 10 deletions
|
|
@ -40,26 +40,19 @@
|
||||||
nebula.enable = true;
|
nebula.enable = true;
|
||||||
sshd.enable = true;
|
sshd.enable = true;
|
||||||
dns.enable = true;
|
dns.enable = true;
|
||||||
|
|
||||||
caddy.virtualHosts."alerts.sprouted.cloud" = {
|
|
||||||
inherit (config.custom.web-services.ntfy) port;
|
|
||||||
extraConfig = ''
|
|
||||||
@putpost method PUT POST
|
|
||||||
respond @putpost "Access denied" 403 { close }
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
web-services =
|
web-services =
|
||||||
let
|
let
|
||||||
privateDomain = config.custom.networking.overlay.domain;
|
privateDomain = config.custom.networking.overlay.domain;
|
||||||
|
sproutedCloud = "sprouted.cloud";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
gatus = {
|
gatus = {
|
||||||
enable = true;
|
enable = true;
|
||||||
domain = "status.${privateDomain}";
|
domain = "status.${privateDomain}";
|
||||||
generateDefaultEndpoints = true;
|
generateDefaultEndpoints = true;
|
||||||
endpoints."alerts.${privateDomain}" = {
|
endpoints."alerts.${sproutedCloud}" = {
|
||||||
path = "/v1/health";
|
path = "/v1/health";
|
||||||
extraConditions = [ "[BODY].healthy == true" ];
|
extraConditions = [ "[BODY].healthy == true" ];
|
||||||
};
|
};
|
||||||
|
|
@ -67,7 +60,7 @@
|
||||||
|
|
||||||
ntfy = {
|
ntfy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
domain = "alerts.${privateDomain}";
|
domain = "alerts.${sproutedCloud}";
|
||||||
};
|
};
|
||||||
|
|
||||||
grafana = {
|
grafana = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue