18 lines
531 B
INI
18 lines
531 B
INI
|
[Unit]
|
||
|
Description=Update DNS record at Route53 with LAN public IP
|
||
|
After=network-online.target
|
||
|
[Service]
|
||
|
# if using aws profile files must be in .aws under user home given below.
|
||
|
User=sysadmin
|
||
|
Group=sysadmin
|
||
|
# NODE_ENV and NODE_INSTANCE will determine configuration file. see config directory in repo
|
||
|
Environment=NODE_ENV=production
|
||
|
Environment=NODE_APP_INSTANCE=%i
|
||
|
WorkingDirectory=/opt/update-public-ip
|
||
|
ExecStart=/usr/bin/node -r esm /opt/update-public-ip/index.js
|
||
|
Restart=always
|
||
|
RestartSec=3
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=default.target
|