Use lsyncd to push files to gitlab pages server
Server itself in future commit
This commit is contained in:
19
ansible/roles/gitlab/files/lsyncd.lua
Normal file
19
ansible/roles/gitlab/files/lsyncd.lua
Normal file
@ -0,0 +1,19 @@
|
||||
settings {
|
||||
logfile = "/tmp/lsyncd.log",
|
||||
statusFile = "/tmp/lsyncd.status",
|
||||
}
|
||||
|
||||
sync {
|
||||
default.rsyncssh,
|
||||
source = "/mnt/pages",
|
||||
host = "user@{{ wireguard.clients.walker.ip }}",
|
||||
targetdir = "/config/pages",
|
||||
delay = 10,
|
||||
rsync = {
|
||||
archive = true,
|
||||
compress = true
|
||||
},
|
||||
ssh = {
|
||||
port = 8222
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user