tyo0/sing-box: use sops path directly

This commit is contained in:
Guanran Wang 2024-09-06 21:20:24 +08:00
parent b2cd2920d8
commit 36288c8958
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF

View file

@ -18,7 +18,7 @@
listen = "0.0.0.0"; listen = "0.0.0.0";
listen_port = 27253; listen_port = 27253;
users = { users = {
_secret = "/run/credentials/sing-box.service/auth"; _secret = config.sops.secrets."sing-box/auth".path;
quote = false; quote = false;
}; };
tls = { tls = {
@ -47,7 +47,6 @@
path = "/var/lib/caddy/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory/tyo0.ny4.dev"; path = "/var/lib/caddy/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory/tyo0.ny4.dev";
in in
[ [
"auth:${config.sops.secrets."sing-box/auth".path}"
"cert:${path}/tyo0.ny4.dev.crt" "cert:${path}/tyo0.ny4.dev.crt"
"key:${path}/tyo0.ny4.dev.key" "key:${path}/tyo0.ny4.dev.key"
]; ];