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