From f6fecba6c7fe817b61accebad07970c72dd0334d Mon Sep 17 00:00:00 2001 From: Haruue Icymoon Date: Tue, 12 Sep 2023 13:21:01 +0800 Subject: [PATCH] feat(scripts): HYSTERIA_ACME_DIR in systemd unit --- scripts/install_server.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install_server.sh b/scripts/install_server.sh index 95a7964..ef114d7 100644 --- a/scripts/install_server.sh +++ b/scripts/install_server.sh @@ -675,10 +675,11 @@ After=network.target [Service] Type=simple ExecStart=$EXECUTABLE_INSTALL_PATH server --config ${CONFIG_DIR}/${_config_name}.yaml -WorkingDirectory=$HYSTERIA_HOME_DIR +WorkingDirectory=$CONFIG_DIR User=$HYSTERIA_USER Group=$HYSTERIA_USER Environment=HYSTERIA_LOG_LEVEL=info +Environment=HYSTERIA_ACME_DIR=$HYSTERIA_HOME_DIR/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