mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 09:07:47 +01:00
Merge pull request #394 from mchangrh/rsync-container
add rsyncd config
This commit is contained in:
commit
06af78c770
2 changed files with 24 additions and 0 deletions
|
@ -28,6 +28,15 @@ services:
|
||||||
- 3241:3000
|
- 3241:3000
|
||||||
volumes:
|
volumes:
|
||||||
- ./newleaf/configuration.py:/workdir/configuration.py
|
- ./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:
|
volumes:
|
||||||
database-data:
|
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