app-stormkit-io icon indicating copy to clipboard operation
app-stormkit-io copied to clipboard

Port configuration for Self hosted deployment

Open aymanapatel opened this issue 1 year ago • 3 comments

Wanted to see if we can change Port for Self-hosted version.

aymanapatel avatar Sep 14 '24 17:09 aymanapatel

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.

svedova avatar Sep 14 '24 18:09 svedova

Some ports are blocked by Firewall. Hence need to configure port.

aymanapatel avatar Sep 18 '24 10:09 aymanapatel

@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.

svedova avatar Sep 18 '24 11:09 svedova