assign ip to npm
Some checks failed
Test / test (push) Has been cancelled
Renovate / renovate (push) Has been cancelled

This commit is contained in:
2026-01-13 14:35:30 +00:00
parent d87429f98d
commit a7691b16f0
2 changed files with 6 additions and 6 deletions

View File

@@ -22,7 +22,7 @@
"type": "number", "type": "number",
"label": "HTTP Port", "label": "HTTP Port",
"env_variable": "NPM_HTTP_PORT", "env_variable": "NPM_HTTP_PORT",
"default": "1180", "default": "80",
"required": true, "required": true,
"hint": "Port for HTTP traffic (mapped to container port 80)" "hint": "Port for HTTP traffic (mapped to container port 80)"
}, },
@@ -30,7 +30,7 @@
"type": "number", "type": "number",
"label": "HTTPS Port", "label": "HTTPS Port",
"env_variable": "NPM_HTTPS_PORT", "env_variable": "NPM_HTTPS_PORT",
"default": "11443", "default": "443",
"required": true, "required": true,
"hint": "Port for HTTPS traffic (mapped to container port 443)" "hint": "Port for HTTPS traffic (mapped to container port 443)"
}, },
@@ -38,7 +38,7 @@
"type": "number", "type": "number",
"label": "Web UI Port", "label": "Web UI Port",
"env_variable": "NPM_WEBUI_PORT", "env_variable": "NPM_WEBUI_PORT",
"default": "1181", "default": "81",
"required": true, "required": true,
"hint": "Port for HTTPS traffic (mapped to container port 443)" "hint": "Port for HTTPS traffic (mapped to container port 443)"
} }

View File

@@ -8,15 +8,15 @@
"internalPort": 81, "internalPort": 81,
"addPorts": [ "addPorts": [
{ {
"hostPort": "${NPM_HTTP_PORT}", "hostPort": "192.168.1.150:${NPM_HTTP_PORT}",
"containerPort": 80 "containerPort": 80
}, },
{ {
"hostPort": "${NPM_HTTPS_PORT}", "hostPort": "192.168.1.150:${NPM_HTTPS_PORT}",
"containerPort": 443 "containerPort": 443
}, },
{ {
"hostPort": "${NPM_WEBUI_PORT}", "hostPort": "192.168.1.150:${NPM_WEBUI_PORT}",
"containerPort": 81 "containerPort": 81
} }
], ],