Add systemd unit
parent
bcdd389edf
commit
a0c6b9b222
@ -1 +1,11 @@
|
||||
For annoying RSS channels that have bot protection and thus cannot be subscribed to.
|
||||
|
||||
|
||||
# Installing
|
||||
|
||||
```
|
||||
npm install
|
||||
cp xml-proxy.service /etc/systemd/system/xml-proxy.service
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl enable --now xml-proxy.service
|
||||
```
|
||||
|
||||
@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=Puppeteer XML RSS Proxy
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/home/kuba/projects/personal/sejm-proxy
|
||||
ExecStart=/usr/bin/node /home/kuba/projects/personal/sejm-proxy/xml-proxy.js
|
||||
Environment=PORT=3001
|
||||
Environment=PASSWORD=8765ersdtyuioklmijuytrdfcgvyuijokmjiuytfrdf
|
||||
Restart=on-failure
|
||||
Environment=NODE_ENV=production
|
||||
# Optional: log to journal
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Reference in New Issue