Skip to content

Feat/multi proxy support#3

Merged
LorcanChinnock merged 13 commits into
mainfrom
feat/multi-proxy-support
May 7, 2026
Merged

Feat/multi proxy support#3
LorcanChinnock merged 13 commits into
mainfrom
feat/multi-proxy-support

Conversation

@LorcanChinnock
Copy link
Copy Markdown
Owner

This pull request introduces support for running multiple YARP proxy + devtunnel pairs from a single AppHost, replacing the previous single-proxy setup. Each proxy/tunnel pair is now configured via its own JSON file in a new src/AppHost/proxies/ directory, enabling independent configuration of routes, CORS, and access mode per pair. The README and code are updated to reflect the new workflow, and a detailed design document is added. The changes also improve testability and error handling for configuration issues.

Multiple proxy/tunnel pair support:

  • src/AppHost/AppHost.cs: Rewritten to scan the proxies/ folder for JSON files, creating a proxy/tunnel pair for each valid file. The filename determines the slug and resource names, and per-pair access mode is loaded from the file. Startup fails with clear errors for invalid filenames or an empty folder.
  • README.md: Updated throughout to explain the new multi-proxy workflow, including quickstart, migration, and advanced scenarios. Instructions and examples now reference the per-pair JSON files in src/AppHost/proxies/. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

Design and documentation:

Other improvements:

These changes make it easy to add, remove, and independently configure multiple proxy/tunnel pairs, improving flexibility and maintainability for local development workflows.

@LorcanChinnock LorcanChinnock self-assigned this May 7, 2026
@LorcanChinnock LorcanChinnock merged commit e3faf09 into main May 7, 2026
1 check passed
@LorcanChinnock LorcanChinnock deleted the feat/multi-proxy-support branch May 7, 2026 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant