Port configuration for Self hosted deployment
Wanted to see if we can change Port for Self-hosted version.
Thanks for the issue!
@aymanapatel can you please describe what PORT are you referring to?
The Stormkit UI or the application hosted through Stormkit (e.g next.js, node.js)?
The UI can be configured through the following ports:
-
STORMKIT_HTTPS_PORT -
STORMKIT_HTTP_PORT
But bear in mind that if you configure these ports, the load balancer (should be a layer 4 because SSL needs to be terminated by Stormkit) still needs to serve 80 and 443 and forward the requests to the configured ports.
If you can tell me why you need to change the port I can help you better.
Some ports are blocked by Firewall. Hence need to configure port.
@aymanapatel I'd need to see your setup in order to help you out better here. Normally, Stormkit needs only ports 80 and 443 - but if you're behind a load balancer you can configure the ports with the environment variables mentioned above so you can configure your infrastructure as you'd please.
Let me know if that doesn't fix your problem, I'm also happy to jump on a sync discussion through Discord if you need more assistance.