-
Notifications
You must be signed in to change notification settings - Fork 31
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
How to change the port 80 and port 443 used by ESP to some other port ? #23
Comments
It is currently not supported, but you could manually modify the docker-compose file to change the ports.
You would also have to change the way that the kernel parameter: HOSTIP is set
So that the client machines can get back to the Edge Software Provisioner during PXE boot |
Okay, we can change the ports in docker-compose file. That will get the nginx server to host on user defined port.
Let's say I have to change the http port from 80 to 8888, then I can modify this line as 8888:80 Now, to set the HOSTIP with modified port number, will we need to provide the HOSTIP:8888 through config.yml ? Edge-Software-Provisioner/conf/config.yml Line 16 in ed15845
If we do this then won't there be a conflict where port numbers are hardcoded or where HTTPS calls are being made, as highlighted in following instances ?
Edge-Software-Provisioner/scripts/espctl.sh Line 164 in 9eda8c3
How do you suggest we safely set the HOSTIP ? |
Correct, you can change the port in the docker compose file which will get nginx to serve on the desired port. Also correct, you have to make sure you check all the places where host IP is used and make sure that it is not having a port appended. It IS NOT enough to just specify the port in the config file. Off the top of my head, there should be something for the git tea instance, but I'm sure there are other places. Sorry there isn't an easy turn-key solution, this portion was not designed to be configurable. However, we could add it to the back log if there is enough demand for it. If you are successful, it would be great to get a PR! |
What else are you running on the same system? There is a possible work around, but it depends what you are running on the same system hosted with ESP. You can setup an HAProxy policy like this: When someone access http://{ESP_IP_ADDRESS}/my_cool_webservice/* it proxies to http://127.0.0.1:8081/ (which is running your software) |
ESP uses port 80[HTTP] and port 443[HTTPS] to host nginx server. During provisioning, http and https calls route to their default port numbers. Is there a way that we can specify in ESP to change these default ports to user defined port numbers ?
The text was updated successfully, but these errors were encountered: