https://github.com/hermanbanken/myrok
Self-hosted NGrok alternative
https://github.com/hermanbanken/myrok
Last synced: 4 months ago
JSON representation
Self-hosted NGrok alternative
- Host: GitHub
- URL: https://github.com/hermanbanken/myrok
- Owner: hermanbanken
- Created: 2022-09-01T08:00:37.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-01T08:37:07.000Z (about 3 years ago)
- Last Synced: 2025-05-18T08:07:38.958Z (5 months ago)
- Language: Go
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cloud Run ngrok alternative
Serverless hosted ngrok alternative.1. Connect to `/proxy` using WebSockets.
2. You receive `{ "endpoint": " " }`
3. Start sending requests to `//...rest`
4. On WebSockets you receive requests & you reply with responses.Request format:
```javascript
{
"uuid": "some-uuid",
"method": "POST",
"path": "/",
"headers": {
"Host": ["example.org"],
"Content-Length": ["11"]
},
"body_base64": "SGVsbG8gV29ybGQK" # "Hello World"
}
```Response format:
```json
{
"uuid": "some-uuid",
"status": "200",
"headers": {
"Host": ["example.org"],
"Content-Length": ["1"]
},
"body_base64": "SGVsbG8gQmFjawo=" # "Hello Back"
}
```