Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Implementation outline for dynamic destination ports with YARP #62

Merged
merged 1 commit into from
Feb 8, 2025

Conversation

rbonestell
Copy link
Contributor

This pull request includes several changes to the FUNC project to implement dynamic port configuration for different services. The most important changes include adding a new Shared class to store port numbers, updating the Get method in Node.cs to set these port numbers, and modifying the reverse proxy configuration to use these dynamic ports.

Dynamic port configuration:

  • FUNC/Shared.cs: Added a new Shared class with static properties AlgoPort and VoiPort to store port numbers.
  • FUNC/Node.cs: Updated the Get method to set Shared.AlgoPort and Shared.VoiPort based on the node name.

Reverse proxy configuration:

  • FUNC/Program.cs: Re-enabled the Yarp.ReverseProxy.Transforms using directive.
  • FUNC/Program.cs: Modified the reverse proxy configuration to dynamically change the destination port based on the original request port using the values from Shared.

@acfunk acfunk merged commit 699f277 into GalaxyPay:yarp Feb 8, 2025
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.

2 participants