repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
73a5640
parent
159c345
author
Antonio Mika
date
2022-08-18 03:05:36 +0000 UTC
Add rsync support to imgs
1 files changed,  +3, -0
M cmd/imgs/ssh/main.go
+3, -0
 1@@ -15,6 +15,7 @@ import (
 2 	"git.sr.ht/~erock/pico/wish/cms"
 3 	"git.sr.ht/~erock/pico/wish/pipe"
 4 	"git.sr.ht/~erock/pico/wish/proxy"
 5+	wishrsync "git.sr.ht/~erock/pico/wish/send/rsync"
 6 	"git.sr.ht/~erock/pico/wish/send/scp"
 7 	"git.sr.ht/~erock/pico/wish/send/sftp"
 8 	"git.sr.ht/~erock/pico/wish/send/utils"
 9@@ -38,6 +39,8 @@ func createRouter(cfg *shared.ConfigSite, handler utils.CopyFromClientHandler) p
10 
11 		if len(cmd) > 0 && cmd[0] == "scp" {
12 			mdw = append(mdw, scp.Middleware(handler))
13+		} else if len(cmd) > 0 && cmd[0] == "rsync" {
14+			mdw = append(mdw, wishrsync.Middleware(handler))
15 		} else {
16 			mdw = append(mdw,
17 				pipe.Middleware(handler, ""),