From a0c6b9b222f56acce06402311c46a2469017145c Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Sun, 1 Feb 2026 22:47:16 +0100 Subject: [PATCH] Add systemd unit --- README.md | 10 ++++++++++ rss-proxy.service | 18 ++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 rss-proxy.service diff --git a/README.md b/README.md index 400b8cc..1087f41 100644 --- a/README.md +++ b/README.md @@ -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 +``` diff --git a/rss-proxy.service b/rss-proxy.service new file mode 100644 index 0000000..a8fda6e --- /dev/null +++ b/rss-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