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

Support include endpoints function #135

Closed
HanadaLee opened this issue Jul 27, 2024 · 3 comments
Closed

Support include endpoints function #135

HanadaLee opened this issue Jul 27, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@HanadaLee
Copy link

In realm, endpoints are similar to the role of nginx servers. However, they can only be used in a single configuration file. If there are a large number of forwarding rules, it will be troublesome to manage the configuration file. I hope to implement endpoint-based file parsing.

Here is an example

realm.json

{
  "external_endpoints": "./endpoints/*.json",
  "endpoints": [
    {
      "listen": "0.0.0.0:5000",
      "remote": "1.1.1.1:443"
    },
    {
      "listen": "0.0.0.0:10000",
      "remote": "www.google.com:443"
    }
  ]
}

./endpoints/cloud.google.com.json

{
      "listen": "0.0.0.0:10001",
      "remote": "cloud.google.com:443"
}
@zephyrchien zephyrchien added the enhancement New feature or request label Jul 28, 2024
@zephyrchien
Copy link
Collaborator

The proposal sounds good to me. Personally I would like to have HTTP API implemented first, the configuration file loading process will then go the API path.

@zephyrchien
Copy link
Collaborator

#141 would be helpful to reduce the complexity of managing config files.

@zephyrchien
Copy link
Collaborator

wait for #91

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants