Skip to content

fly-apps/private-network-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Private Network Router

This is for routing private, admin requests to isolated Fly Apps/Machines. It will work across apps in different 6pn networks, and work more reliably for HTTP requests than using the 6pn/<app>.internal directly.

Installation

  1. Clone repo
  2. Run flyctl launch --flycast
  3. Pick the right org

Usage

Send requests to <your-app>.<router-app>.flycast, it will reroute the request to the matching service on <your-app>.

Example

~ curl http://localhost:3004 -H "fly-app-name:my-app" -D - -H 'fly-machine-id: 1234'
HTTP/1.1 200 OK
Content-Type: text/plain
fly-replay: app=my-app;instance=1234
Date: Fri, 16 May 2025 17:11:33 GMT
Content-Length: 60

Replaying request to: app=my-app;instance=1234 (via headers)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published