mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
fix(cloudflared): explicit user
This commit is contained in:
parent
d80fd6fd5f
commit
e0fe5bcd6f
4 changed files with 22 additions and 6 deletions
|
|
@ -11,6 +11,9 @@ in {
|
|||
enable = mkDefault true;
|
||||
metricsPort = mkDefault 3011;
|
||||
metricsBind = "[::]";
|
||||
systemd.extraServiceSettings = {
|
||||
serviceConfig.User = mkDefault "cloudflared";
|
||||
};
|
||||
};
|
||||
users = mkIf cfg.enable {
|
||||
users.cloudflared = {
|
||||
|
|
@ -26,8 +29,8 @@ in {
|
|||
};
|
||||
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;
|
||||
"net.core.wmem_max" = mkDefault 2500000;
|
||||
"net.core.rmem_max" = mkDefault 7500000;
|
||||
"net.core.wmem_max" = mkDefault 7500000;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue