feat(scripts): HYSTERIA_ACME_DIR in systemd unit

This commit is contained in:
Haruue Icymoon 2023-09-12 13:21:01 +08:00
parent 9e9a820b68
commit f6fecba6c7
No known key found for this signature in database
GPG key ID: F6083B28CBCBC148

View file

@ -675,10 +675,11 @@ After=network.target
[Service] [Service]
Type=simple Type=simple
ExecStart=$EXECUTABLE_INSTALL_PATH server --config ${CONFIG_DIR}/${_config_name}.yaml ExecStart=$EXECUTABLE_INSTALL_PATH server --config ${CONFIG_DIR}/${_config_name}.yaml
WorkingDirectory=$HYSTERIA_HOME_DIR WorkingDirectory=$CONFIG_DIR
User=$HYSTERIA_USER User=$HYSTERIA_USER
Group=$HYSTERIA_USER Group=$HYSTERIA_USER
Environment=HYSTERIA_LOG_LEVEL=info Environment=HYSTERIA_LOG_LEVEL=info
Environment=HYSTERIA_ACME_DIR=$HYSTERIA_HOME_DIR/acme
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW
NoNewPrivileges=true NoNewPrivileges=true