From bc7b7f96e16f89aa67549e2ff5d0c6ce7396fa6b Mon Sep 17 00:00:00 2001 From: RTSDA Date: Sat, 16 Aug 2025 19:00:59 -0400 Subject: [PATCH] Remove sensitive service file and add generic template - Remove livestream-archiver.service with hardcoded usernames and domains - Add livestream-archiver.service.example as generic template - Add actual service file to .gitignore to prevent accidental commits - Users should copy .example file and customize for their setup --- .gitignore | 3 +++ livestream-archiver.service | 16 ---------------- livestream-archiver.service.example | 16 ++++++++++++++++ 3 files changed, 19 insertions(+), 16 deletions(-) delete mode 100644 livestream-archiver.service create mode 100644 livestream-archiver.service.example diff --git a/.gitignore b/.gitignore index e34c6e1..2eadd9b 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,6 @@ Thumbs.db # Cache files .cache/ + +# Local configuration (contains sensitive data) +livestream-archiver.service diff --git a/livestream-archiver.service b/livestream-archiver.service deleted file mode 100644 index 9552b0a..0000000 --- a/livestream-archiver.service +++ /dev/null @@ -1,16 +0,0 @@ -[Unit] -Description=Livestream Archiver Service -After=network.target - -[Service] -Type=simple -User=rockvilleav -Group=rockvilleav -WorkingDirectory=/home/rockvilleav/livestream-archiver -ExecStart=/home/rockvilleav/livestream-archiver/target/release/livestream_archiver -Environment=PC_SYNC_TARGET=benjaminslingo@macbook-pro.slingoapps.dev:~/rtsda/livestreams/ -Restart=always -RestartSec=10 - -[Install] -WantedBy=multi-user.target \ No newline at end of file diff --git a/livestream-archiver.service.example b/livestream-archiver.service.example new file mode 100644 index 0000000..2f46cc2 --- /dev/null +++ b/livestream-archiver.service.example @@ -0,0 +1,16 @@ +[Unit] +Description=Livestream Archiver Service +After=network.target + +[Service] +Type=simple +User= +Group= +WorkingDirectory=/path/to/livestream-archiver +ExecStart=/path/to/livestream-archiver/target/release/livestream_archiver +Environment=PC_SYNC_TARGET=user@server:/path/to/destination/ +Restart=always +RestartSec=10 + +[Install] +WantedBy=multi-user.target \ No newline at end of file