mirror of
https://github.com/georgyo/ifconfig.io.git
synced 2025-09-13 15:44:21 +00:00
Added Javascript endpoints and systemd service example
This commit is contained in:
committed by
George Shammas
parent
a5adaf7e50
commit
984be2f57e
24
web-service.systemd
Normal file
24
web-service.systemd
Normal file
@@ -0,0 +1,24 @@
|
||||
[Unit]
|
||||
Description=ifconfig.io web service
|
||||
ConditionPathExists=/opt/ifconfig.io
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
Group=root
|
||||
Environment="GIN_MODE=release"
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
startLimitIntervalSec=60
|
||||
|
||||
WorkingDirectory=/opt/ifconfig.io
|
||||
ExecStart=/opt/ifconfig.io/server
|
||||
|
||||
PermissionsStartOnly=true
|
||||
StandardOutput=syslog
|
||||
StandardError=syslog
|
||||
SyslogIdentifier=web-server
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user