repos / pico

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

pico / shared
Antonio Mika · 16 Nov 24

pubsub.go

 1package shared
 2
 3import (
 4	"github.com/picosh/utils"
 5	"github.com/picosh/utils/pipe"
 6)
 7
 8func NewPicoPipeClient() *pipe.SSHClientInfo {
 9	return &pipe.SSHClientInfo{
10		RemoteHost:     utils.GetEnv("PICO_PIPE_ENDPOINT", "pipe.pico.sh:22"),
11		KeyLocation:    utils.GetEnv("PICO_PIPE_KEY", "ssh_data/term_info_ed25519"),
12		KeyPassphrase:  utils.GetEnv("PICO_PIPE_PASSPHRASE", ""),
13		RemoteHostname: utils.GetEnv("PICO_PIPE_REMOTE_HOST", "pipe.pico.sh"),
14		RemoteUser:     utils.GetEnv("PICO_PIPE_USER", "pico"),
15	}
16}