mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
add rsyncd config
This commit is contained in:
parent
d06762418e
commit
65fa663a1a
2 changed files with 24 additions and 0 deletions
|
@ -28,6 +28,15 @@ services:
|
|||
- 3241:3000
|
||||
volumes:
|
||||
- ./newleaf/configuration.py:/workdir/configuration.py
|
||||
rsync:
|
||||
image: mchangrh/rsync:latest
|
||||
container_name: rsync
|
||||
restart: always
|
||||
ports:
|
||||
- 873:873
|
||||
volumes:
|
||||
- ./rsync/rsync.conf:/etc/rsync.conf
|
||||
- ./database-export/:/mirror
|
||||
|
||||
volumes:
|
||||
database-data:
|
||||
|
|
15
docker/rsync/rsyncd.conf
Normal file
15
docker/rsync/rsyncd.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
pid file = /var/run/rsyncd.pid
|
||||
lock file = /var/run/rsync.lock
|
||||
log file = /var/log/rsync.log
|
||||
# replace with user accessing the files
|
||||
|
||||
[sponsorblock]
|
||||
use chroot = no
|
||||
max connections = 10
|
||||
# path to mirrored files
|
||||
path = /mirror
|
||||
comment = sponsorblock-database
|
||||
read only = true
|
||||
refuse options = c delete zl
|
||||
# disallow checksumming and compression level to reduce CPU/IO load
|
||||
# disallow deleting files clientside
|
Loading…
Reference in a new issue