use proxy server

This commit is contained in:
uazo 2021-07-30 13:30:15 +02:00 committed by GitHub
parent e5c7e803c3
commit d9afa39915
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,13 +7,15 @@ NC='\033[0m' # No Color
echo -e ${RED} -------- start goma-server ${NC}
test -f /tmp/proxy/bots.sock && sudo rm /tmp/proxy/bots.sock
socat UNIX-LISTEN:/tmp/proxy/bots.sock,reuseaddr,fork TCP4:$REMOTEEXEC_ADDR &
#test -f /tmp/proxy/bots.sock && sudo rm /tmp/proxy/bots.sock
#socat UNIX-LISTEN:/tmp/proxy/bots.sock,reuseaddr,fork TCP4:$REMOTEEXEC_ADDR &
socat TCP-LISTEN:50051,reuseaddr,fork UNIX-CLIENT:/tmp/proxy/bots.sock &
cd ./goma-server/
/usr/local/go/bin/go run ./cmd/remoteexec_proxy/main.go \
--port 5050 \
--remoteexec-addr $REMOTEEXEC_ADDR \
--remoteexec-addr 127.0.0.1:50051 \
--remote-instance-name default_instance \
--insecure-remoteexec \
--allowed-users ppp \