mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
feat(monitoring): cloudflared metrics
This commit is contained in:
parent
1d19f0821d
commit
ec7e322e2d
10 changed files with 124 additions and 29 deletions
|
|
@ -7,7 +7,16 @@
|
|||
cfg = config.services.cloudflared;
|
||||
in {
|
||||
config = {
|
||||
services.cloudflared.enable = mkDefault true;
|
||||
services.cloudflared = {
|
||||
enable = mkDefault true;
|
||||
metricsPort = mkDefault 3011;
|
||||
metricsBind = "[::]";
|
||||
};
|
||||
networking.firewall = mkIf cfg.enable {
|
||||
interfaces.lan.allowedTCPPorts = mkIf (cfg.metricsPort != null) [
|
||||
cfg.metricsPort
|
||||
];
|
||||
};
|
||||
boot.kernel.sysctl = mkIf (!config.boot.isContainer && cfg.enable) {
|
||||
# https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes
|
||||
"net.core.rmem_max" = mkDefault 2500000;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue