2021-03-17 11:21:53 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Webhookey
|
|
|
|
After=syslog.target
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
RestartSec=2s
|
|
|
|
Type=simple
|
2021-04-17 00:08:11 +02:00
|
|
|
User=%u
|
|
|
|
Group=%g
|
|
|
|
ExecStart=webhookey
|
2021-03-17 11:21:53 +01:00
|
|
|
Restart=always
|
2021-04-17 00:08:11 +02:00
|
|
|
Environment=ROCKET_ADDRESS=127.0.0.1 ROCKET_PORT=8000 RUST_LOG=info
|
2021-03-22 10:07:14 +01:00
|
|
|
# Environment=ROCKET_ADDRESS=127.0.0.1 ROCKET_PORT=8000 ROCKET_TLS={certs="/path/to/certs.pem",key="/path/to/key.pem"}
|
2021-03-17 11:21:53 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|