Merge pull request #240072 from NickCao/singbox-harden
nixos/sing-box: set umask 0077 when generating configuration file
This commit is contained in:
commit
694de8e63e
1 changed files with 1 additions and 0 deletions
|
@ -56,6 +56,7 @@ in
|
|||
|
||||
systemd.services.sing-box = {
|
||||
preStart = ''
|
||||
umask 0077
|
||||
mkdir -p /etc/sing-box
|
||||
${utils.genJqSecretsReplacementSnippet cfg.settings "/etc/sing-box/config.json"}
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue