Revert "feat(scripts): HYSTERIA_ACME_DIR in systemd unit"

This reverts commit f6fecba6c7.

ref: #692

there are still some permission issues due to writing to workdir by default.
This commit is contained in:
Haruue Icymoon 2023-09-16 21:13:15 +08:00
parent 1d0560dd34
commit 1173252f62
No known key found for this signature in database
GPG key ID: F6083B28CBCBC148

View file

@ -677,11 +677,10 @@ After=network.target
[Service]
Type=simple
ExecStart=$EXECUTABLE_INSTALL_PATH server --config ${CONFIG_DIR}/${_config_name}.yaml
WorkingDirectory=$CONFIG_DIR
WorkingDirectory=$HYSTERIA_HOME_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