Skip to content

Commit fc7a4f7

Browse files
committed
Added new upgrade port env var
Signed-off-by: Matt Bentley <mbentley@mbentley.net>
1 parent c2701f7 commit fc7a4f7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ The Helm charts are published to [mbentley/omada-controller-helm](https://hub.do
382382
| `SSL_KEY_NAME` | `tls.key` | _any_ | Name of the private cert mounted to `/cert`; see [Custom Certificates](#custom-certificates) | >= `3.2` |
383383
| `TLS_1_11_ENABLED` | `false` | `true`, `false` | Re-enables TLS 1.0 & 1.1 if set to `true` | >= `4.1` |
384384
| `TZ` | `Etc/UTC` | _\<many\>_ | See [Time Zones](#time-zones) for more detail | >= `3.2` |
385+
| `UPGRADE_HTTPS_PORT` | `8043` | `1024`-`65535` | Dedicated HTTPS port for upgrades, separate from the main Controller port | >= `6.1` |
385386

386387
Documentation on the ports used by the controller can be found in the [TP-Link FAQ](https://support.omadanetworks.com/us/document/13090/).
387388

entrypoint-unified.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ setup_environment() {
3232
PORT_TRANSFER_V2="${PORT_TRANSFER_V2:-29815}"
3333
PORT_RTTY="${PORT_RTTY:-29816}"
3434
PORT_DEVICE_MONITOR="${PORT_DEVICE_MONITOR:-29817}"
35+
UPGRADE_HTTPS_PORT="${UPGRADE_HTTPS_PORT:-8043}"
3536

3637
# EXTERNAL MONGODB
3738
MONGO_EXTERNAL="${MONGO_EXTERNAL:-false}"
@@ -91,7 +92,7 @@ print_timezone_info() {
9192

9293
update_port_configuration() {
9394
# update stored ports when different of enviroment defined ports (works for numbers only)
94-
for ELEM in MANAGE_HTTP_PORT MANAGE_HTTPS_PORT PORTAL_HTTP_PORT PORTAL_HTTPS_PORT PORT_ADOPT_V1 PORT_APP_DISCOVERY PORT_UPGRADE_V1 PORT_MANAGER_V1 PORT_MANAGER_V2 PORT_DISCOVERY PORT_TRANSFER_V2 PORT_RTTY PORT_DEVICE_MONITOR
95+
for ELEM in MANAGE_HTTP_PORT MANAGE_HTTPS_PORT PORTAL_HTTP_PORT PORTAL_HTTPS_PORT PORT_ADOPT_V1 PORT_APP_DISCOVERY PORT_UPGRADE_V1 PORT_MANAGER_V1 PORT_MANAGER_V2 PORT_DISCOVERY PORT_TRANSFER_V2 PORT_RTTY PORT_DEVICE_MONITOR UPGRADE_HTTPS_PORT
9596
do
9697
# convert element to key name
9798
KEY="$(echo "${ELEM}" | tr '[:upper:]' '[:lower:]' | tr '_' '.')"
@@ -706,4 +707,4 @@ then
706707
main_rootless
707708
else
708709
main_root
709-
fi
710+
fi

0 commit comments

Comments
 (0)