Deploy peek
Self-hosted public URLs for localhost.
peek:latest
Just deployed
Deploy and Host
peek gives your local server a public URL through your own hosted relay.
This template deploys the peek relay on Railway. After deploy, add your domain and wildcard domain, then use the peek CLI to expose a local app.
About Hosting
Set PEEK_DOMAIN to your domain, without https://.
Example:
example.link
Add both domains to the Railway service:
example.link
*.example.link
Then add the DNS records Railway gives you.
Why Deploy
Deploying the relay gives you your own public tunnel server. Your local machine connects to it with the peek CLI, and public visitors use generated URLs like:
https://{random}.example.link
Common Use Cases
- Share a local web app demo
- Test webhooks against localhost
- Create temporary preview URLs
- Expose personal apps through your own domain
Dependencies for
The peek CLI runs on your local machine:
peek localhost:3000 --domain --token
GitHub: https://github.com/sasicodes/peek
Deployment Dependencies
- HTTP Proxy on port
8080 PEEK_DOMAINPEEK_AUTH_TOKEN- A domain and wildcard domain pointed to Railway
Template Content
peek:latest
ghcr.io/sasicodes/peek:latestPEEK_DOMAIN
Public domain for this peek relay, without https://. Example: peek.example.com. Public tunnel URLs will be created as https://{subdomain}.PEEK_DOMAIN.