feat: add reverse-proxy and session values

This commit is contained in:
Jon Lundy
2021-08-26 11:45:00 -06:00
parent f5ca6a453c
commit ebf34fe7bb
5 changed files with 399 additions and 56 deletions

View File

@@ -1,10 +1,9 @@
-include Makefile.local.mk
export SSH_LISTEN?=:2222
export SSH_HOSTKEYS?=hostkeys
export SSH_AUTHKEYS?=authkeys
export SSH_HOST?=localhost
export SSH_PORT?=2222
export SSH_OPTS?=-R 0.0.0.0:1234:localhost:3000
run:
go run .
@@ -15,6 +14,3 @@ genkeys:
ssh-keygen -q -N "" -t ecdsa -f $(SSH_HOSTKEYS)/ecdsa
ssh-keygen -q -N "" -t ed25519 -f $(SSH_HOSTKEYS)/ed25519
rm -f $(SSH_HOSTKEYS)/*.pub
forward:
ssh -T $(SSH_HOST) -p $(SSH_PORT) $(SSH_OPTS)