add cloudflare and documentation
This commit is contained in:
12
contrib/safelineapi.env
Normal file
12
contrib/safelineapi.env
Normal file
@@ -0,0 +1,12 @@
|
||||
## Example environment file for systemd (placed at /etc/default/safelineapi)
|
||||
## Values here are sourced by the systemd unit via EnvironmentFile
|
||||
# Path to config.json
|
||||
CONFIG_PATH=/opt/safelineapi/config.json
|
||||
|
||||
# Optional runtime overrides
|
||||
#SAFELINE_API_TOKEN=
|
||||
#DNS_PROVIDER=Cloudflare
|
||||
#CONTACT_EMAIL=you@example.com
|
||||
|
||||
# Path to binary (if you installed somewhere else)
|
||||
#BIN=/opt/safelineapi/safelineApi
|
||||
16
contrib/safelineapi.service
Normal file
16
contrib/safelineapi.service
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=SafelineAPI Service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/safelineapi
|
||||
ExecStart=/opt/safelineapi/safelineApi
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
EnvironmentFile=/etc/default/safelineapi
|
||||
User=safeline
|
||||
Group=safeline
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user