kosa8 docs

Commands / kosa8 sandbox preview

kosa8 sandbox preview

Make a signed, expiring link to a web server in a sandbox

Usage

kosa8 preview SANDBOX PORT

Prints a link that opens PORT of a server running in the sandbox in a browser. The link carries a token signed by the daemon and stops working when it expires, when the sandbox is deleted, or when every link is revoked with kosa8 sandbox preview --revoke-all. The server must listen on 0.0.0.0.

kosa8 sandbox preview web 8000 --session main --expires 30m

Options

FlagTypeWhat it doesDefault
--containerstringthe container the server runs in—
--expiresdurationhow long the link works (at most 168h)1h0m0s
--revoke-allboolend every preview link this daemon has made—
--sessionstringthe shell session the server runs in—