cannot run node-red-docker behind nginx docker with virtual directory.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- docker, nginx
- Domain
- devops, infrastructure
Research direction
Start by reproducing the setup with the listed Ubuntu, Docker, Node-RED, and nginx versions, then inspect the nginx server configuration and the settings.js options mentioned. The issue is resolved when the Node-RED interface and its static references load correctly through the /form virtual directory.
Written by the indexing model from the issue text.
Description
What are the steps to reproduce?
install:
- ubuntu 20.04 desktop
- docker-ce 19.03.12
- node-red 1.0.6 (from latest docker)
- nginx docker
- launch a virtual directory named "form" and set proxy_pass to node-red container in nginx conf file.
What happens?
proxy_pass may work, but some static reference library cannot be located correctly.

I had tried to modify httpAdminRoot, httpNodeRoot, httpRoot, httpStatic in settings.js, seems not the correct setting item for this case.
nginx setting
upstream form {
server form:1880; <-- node-red container
}
server {
...
location ~ ^/form(/?)(.*) {
proxy_pass http://form/$2;
proxy_http_version 1.1;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location / {
... <- run other pages here.
}
}
- Dominant language
- Shell
- Stars
- 540
- Forks
- 434
- Avg merge
- 24m
- Merged PRs (30d)
- 5
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from node-red/node-red-docker
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
node-red/node-red-docker#536 ·
-
node-red/node-red-docker#522 · 1 assignee ·
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
node-red/node-red-docker#513 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
node-red/node-red-docker#510 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
node-red/node-red-docker#493 · 13 comments ·
All issues in node-red/node-red-docker
Similar issues
-
out-of-date
Difficulty 1/5 Under an hour Newbie friendliness 82/100
CachyOS/CachyOS-PKGBUILDS#1894 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
community-scripts/ProxmoxVE#17396 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
mattpocock/skills#1099 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Update Vish to 1.1.5 Openpackage-update
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
oSoWoSo/vOid_Community_repOsitory#144 · 1 comment ·