mirror of
https://github.com/apernet/hysteria.git
synced 2025-04-03 04:27:39 +03:00
feat(scripts): HYSTERIA_ACME_DIR in systemd unit
This commit is contained in:
parent
9e9a820b68
commit
f6fecba6c7
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue