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

View File

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