IPK's and port usage #67
Replies: 4 comments 5 replies
-
The plan is to expand upon the X-Port control field, but this isn't fleshed out. What I'm personally leaning towards is enforcing the presence of that field for installation. This would allow us to detect conflicts and warn users. One way to 'solve' this might involve a centralized port allocator. Your service makes a request to the port allocator, you receive a port, and we know what port your service is on. |
Beta Was this translation helpful? Give feedback.
-
I could see this working for some services, but it's probably not a good fit for those that the user might want to bookmark for easy access (e.g. dashboards). Any services that rely on cookies or local storage would also be negatively affected by the URL changing regularly. |
Beta Was this translation helpful? Give feedback.
-
How about having a standard way to specify (and edit via the web UI) launch configuration parameters for packages, with installed defaults and "types" (e.g. port numbers). With some frontend conflict checking to flag where there are conflicts on certain parameters (e.g. it could look across all package port number configuration values and detect conflicts)? |
Beta Was this translation helpful? Give feedback.
-
What I think could be a useful alternative to these issues would be to allow packages to use a custom route. For instance, AdvantageScope could have Not sure how feasible this is (I have almost no experience in web development) but this could be very useful |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've gone ahead and installed a bunch of ipk's that I could find, and have been fiddling around with making my own. Looks pretty slick, I like what this opens up.
So far, most IPK's run some small amount of code onboard the SystemCore, but then also host a website at a specific port. So far, seems like all suppliers of IPK's have avoided each other's web ports.
Is there any longer-term plan to carve out ports per supplier (with one or two reserved for team use), to help ensure there's no conflicts? or maybe a strategy to detect conflicts (IPK's declare what ports they need and user is warned on install)?
Beta Was this translation helpful? Give feedback.
All reactions