Configuring the port?

Is there a way to configure the port when running a local server?

(Context: trying to proxy/adapt an origin site using XDN. The origin behavior is mostly broken, until I modify /etc/hosts to point the original hostname to the resolved IP address. But, even then, it can still only be accessed at its original hostname on port 3000, which still continues to break origin behavior. Is there a way to run a server on port 443 instead, so that this will work properly with host hacking?)

Yes, just set the PORT environment variable. For example, “PORT=5000 xdn run”

1 Like