-
Notifications
You must be signed in to change notification settings - Fork 573
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
Allow user to set NGINX_PORT #562
Conversation
Awesome thanks for this @junderw!
No you'll lose it, but we do have a way of dealing with this. You can persist settings in the Like:
Then in the configure script ( So you'd add something to the configure script to set the default like: UMBREL_LISTEN_PORT=${UMBREL_LISTEN_PORT:-80} and then in this block write it to the config file with: sed -i "s/<umbrel-listen-port>/${UMBREL_LISTEN_PORT}/g" "${template}" I know this code is a bit repetitive, we need to refactor it, but it does the job for now! Once you've added that you can test an OTA update by running:
Replace v0.3.5 with the version you're currently running and Umbrel will run through the OTA update process and just update to the same version you're already running. If everything works well the port should be persisted in |
72e5b0c
to
dd095d7
Compare
Sorry that should be:
to OTA update to this PR branch otherwise it'll clear all your changes 🤦♂️. |
2efccac
to
0b039a8
Compare
Verified 0b039a8 It sticks beyond updates.
|
Thank you @junderw! I have a few other things I need to focus on this week but I'll get this tested and merged before the next release. |
Duplicate #256. |
Reopening at the request of @lukechilds |
Co-authored-by: nolim1t <hello@nolim1t.co>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't use port 80, so I have made it configurable.
As long as no internal service relies on the main port being 80 (which doesn't make much sense) this should be a harmless change that will help people fiddling with it on AWS etc etc.
Usage:
sudo UMBREL_LISTEN_PORT=12345 ./scripts/start
Question:
How will this be affected by OTA update? If I set a port, then update, with the ENV stick?