Features / HTTPS ports and SSH
Every port gets its own HTTPS address.
Start a dev server, an API or a webhook receiver in a sandbox and publish its port. It gets an address under on.pols.so with a valid certificate, and it stays private until you make it public. SSH works with the keys you already have.
€10 of usage for 30 days · No credit card
curl -fsSL https://pols.so/install.sh | sh- Ports reachable before you publish one
- 0
- To open a login link
- 5 min
- Browser session per link, for one address
- 12 h
A toll lane to the sandbox
Requests come in through the edge and run down a lane to the sandbox. Publishing a port opens its hatch. A padlocked barrier keeps it private until a login link lifts it, and the switch on the gate lifts it for anyone. Behind it, the SSH gateway plugs into the sandbox with a certificate that lasts two minutes.
- PadlockA port is private unless you publish it with --public. A private port answers only browsers logged in for that one address; everyone else is stopped at the edge and never reaches your app.
- Public switch--public opens the port to anyone who knows its address, with no login: for webhooks, demos and APIs with their own authentication. Publish again with or without it to switch.
- Login gatepols host prints a fresh login link. Open it within 5 minutes: it logs your browser in for that one host name, and the session lasts 12 hours.
- The edgeHolds a certificate for *.on.pols.so and terminates TLS on our own server, with no CDN in front. Each port has its own address, like braveotterk3f9-3000.on.pols.so.
- SSH gatewayssh.pols.so on port 22; port 2222 still works. A key registered with pols ssh-key add opens every running sandbox of your org; the gateway logs in with a certificate valid for two minutes.
- The sandboxPorts you have not published cannot be reached at all. The server must listen on 0.0.0.0, not only on 127.0.0.1.
- The laneThe edge forwards requests to the port over the host's private network, while the sandbox runs. Sandboxes cannot reach *.on.pols.so themselves.
One command per port
pols host prints the address, such as https://sbx-3k9x2m1q8zt4-3000.on.pols.so, and a login link for it. Send the link to whoever should see the page. The server has to listen on0.0.0.0, not only on 127.0.0.1.
# a server on port 3000
$ pols exec web -- docker run -d -p 3000:80 nginx
# private: prints the address and a login link
$ pols host web 3000
# public: anyone with the address
$ pols host web 3000 --public
# register your key once, then SSH in
$ pols ssh-key add ~/.ssh/id_ed25519.pub
$ pols ssh webWhat happens to a request
TLS on our host
The pols edge holds a certificate for
*.on.pols.soand terminates TLS on our own server. No CDN or proxy service sits in front.Login check
A private port only answers once you have logged in for that one address. Everyone else is stopped at the edge and never reaches your app.
Your port
The request goes to the port over the host's private network. Ports you have not published cannot be reached at all.
Private or public
| Private (default) | Public (--public) | |
|---|---|---|
| Who can open it | Browsers logged in with a link from pols host | Anyone with the address |
| Use it for | Dev servers, admin pages, a preview for a colleague | Webhooks, demos, APIs with their own authentication |
Publish the port again with or without --public to switch. SSH goes through ssh.pols.so: a registered key opens every running sandbox of your org, and scp, sftp and port forwarding work.
€10 of usage for 30 days · No credit card
Questions
Which ports can I publish?
Any port from 1 to 65535 except 6080, which the desktop uses internally. Open the desktop with pols desktop instead.
Do published ports survive a stop?
Yes. A port stays published through stops, resumes and resizes until you remove it with pols host SANDBOX PORT --remove. It answers while the sandbox runs, and a request to it wakes a sandbox in standby.
Does my app see the login cookie of a private port?
No. The edge removes its session cookie before it forwards a request, and drops attempts by the sandbox to set it.
Can I serve a port at my own domain?
No. Custom domains are for published sites. A port is reachable at its addresses under on.pols.so only.
Does the address change when I rename the sandbox?
No. Addresses use the sandbox's host label, which is set when it is created and never changes, a rename included. Addresses you handed out keep working.
Can I log in as root over SSH?
No. The gateway logs you in as user, who has passwordless sudo, or as a sandbox user you added. It accepts Ed25519, ECDSA, RSA and security keys registered with pols ssh-key add.
Start with one machine.
Install the CLI, sign up, and give your agent somewhere to work.
curl -fsSL https://pols.so/install.sh | sh€10 of usage for 30 days · No credit card