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

[HELP] How to dynamically start http services on multiple ports? #2278

Open
seventeenman opened this issue Nov 1, 2023 · 1 comment
Open

Comments

@seventeenman
Copy link

seventeenman commented Nov 1, 2023

hi,
Can someone tell me how to dynamically enable http services on multiple ports? Originally, I wanted to dynamically register routing rules, but after reading previous issues, there seems to be no solution. So, can I control http services on multiple ports? For example, I can open or close the service on port 8080 at runtime. This is a scenario for the development of an operation and maintenance management system.

@seventeenman seventeenman changed the title [HELP] How to dynamically register and uninstall the API during running? [HELP] How to dynamically start http services on multiple ports? Nov 5, 2023
@kataras
Copy link
Owner

kataras commented Dec 25, 2023

Hello @seventeenman,

If you have multiple Iris instances listening on different ports, you can use their appX.Shutdown() method to terminate the servers, also you may want to check the apps subpackage also. Please reply back if you have any further questions or if I didn't get the problem right.

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

No branches or pull requests

3 participants
@kataras @seventeenman and others