summarylogtreecommitdiffstats
path: root/hysteria-server@.service
blob: bb4182b594cafe691115b5ca82274b03d8571007 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[Unit]
Description=Hysteria Server Service
Documentation=https://hysteria.network/
After=network.target nss-lookup.target

[Service]
Type=simple
ExecStart=/usr/bin/hysteria server --config /etc/hysteria/%i.yaml --disable-update-check
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

[Install]
WantedBy=multi-user.target