picosh / pico

hacker labs - open source and managed web services leveraging SSH
https://pico.sh
MIT License
784 stars 27 forks source link

feat(pgs): private projects #80

Closed neurosnap closed 7 months ago

neurosnap commented 7 months ago

We can support private projects via local forward ssh tunnels.

Eric sets ACL for project hey-docs-dev:

ssh pgs.sh acl hey-docs-dev pico antonio

Antonio creates SSH tunnel to project:

ssh -L 5000:localhost:80 -N hey-docs-dev@pgs.sh

Antonio can access site via http://localhost:5000

Other options we support:

Further, there is a special API endpoint for any sites accessed via a tunnel: GET http://localhost:5000/pico

This will return information about the user accessing the site, like pico username, public key used, etc.