An open API service indexing awesome lists of open source software.

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

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"
}
```