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
This commit is contained in:
parent
b247683fea
commit
bc7b7f96e1
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -28,3 +28,6 @@ Thumbs.db
|
|||
|
||||
# Cache files
|
||||
.cache/
|
||||
|
||||
# Local configuration (contains sensitive data)
|
||||
livestream-archiver.service
|
||||
|
|
|
@ -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
|
16
livestream-archiver.service.example
Normal file
16
livestream-archiver.service.example
Normal file
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description=Livestream Archiver Service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=<service-user>
|
||||
Group=<service-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
|
Loading…
Reference in a new issue