mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 11:41:34 +01:00
vps-monitor: Only allow writes to ntfy over vpn
This commit is contained in:
parent
d73e3744a8
commit
9299842ce0
1 changed files with 9 additions and 1 deletions
|
|
@ -40,6 +40,14 @@
|
||||||
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 =
|
||||||
|
|
@ -59,7 +67,7 @@
|
||||||
|
|
||||||
ntfy = {
|
ntfy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
domain = "alerts.sprouted.cloud";
|
domain = "alerts.${privateDomain}";
|
||||||
};
|
};
|
||||||
|
|
||||||
grafana = {
|
grafana = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue