net-proxy/hysteria: no need to hardcode cert dir

drop environment settings, but config via
/etc/hysteria/server.yaml, for example

acme:
  dir: /var/lib/hysteria/acme

this is more flexible, works both for sytemd/openrc

Signed-off-by: Yixun Lan <dlan@gentoo.org>
This commit is contained in:
Yixun Lan 2024-12-30 09:29:35 +08:00 committed by 梁永祥
parent c0dbe5b627
commit c5b526a059

View File

@ -10,7 +10,6 @@ WorkingDirectory=~
User=hysteria
Group=hysteria
Environment=HYSTERIA_LOG_LEVEL=info
Environment=HYSTERIA_ACME_DIR=/var/lib/hysteria/acme
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW
NoNewPrivileges=true