2026-08-22 14:56:38 +02:00
# nextcloud-collabora-nodered
2026-08-22 17:36:38 +02:00
Collabora / Nextcloud Office nodes for your **existing ** `nextcloud-node-red` on port **1880 ** .
2026-08-22 14:56:38 +02:00
2026-08-22 17:36:38 +02:00
Does **not ** create a new Node-RED container.
2026-08-22 14:56:38 +02:00
2026-08-22 17:36:38 +02:00
## Default: integrate (not sidecar)
2026-08-22 16:45:59 +02:00
2026-08-22 17:36:38 +02:00
**INSTALL_MODE=integrate ** (default) patches and rebuilds the existing `nextcloud-node-red` on * * :1880**.
No extra container, no port 1881. Sidecar only if you explicitly set `INSTALL_MODE=sidecar` .
2026-08-22 16:45:59 +02:00
2026-08-22 17:36:38 +02:00
## Quick install
2026-08-22 14:56:38 +02:00
``` bash
2026-08-22 15:23:33 +02:00
curl -fsSL https://git.domain.name/your-user/nextcloud-collabora-nodered/raw/branch/main/bootstrap-install.sh | sudo -u ncdeploy bash
2026-08-22 14:56:38 +02:00
```
2026-08-22 17:36:38 +02:00
That script:
1. Clones this repo
2. Copies nodes into your `nextcloud-node-red` tree
3. Patches `Dockerfile` + `entrypoint.sh`
4. Rebuilds the **same ** image and restarts the container
5. Connects Node-RED to Docker `bridge` so CODE is reachable
2026-08-22 14:56:38 +02:00
2026-08-22 17:36:38 +02:00
## Update nodes
2026-08-22 14:56:38 +02:00
``` bash
2026-08-22 17:36:38 +02:00
cd /path/to/nextcloud-collabora-nodered
2026-08-22 15:23:33 +02:00
git pull
./install.sh
2026-08-22 14:59:25 +02:00
```
2026-08-22 17:36:38 +02:00
## Manual integration
2026-08-22 14:56:38 +02:00
2026-08-22 14:59:25 +02:00
``` bash
2026-08-22 17:36:38 +02:00
NODERED_DIR = /path/to/nextcloud-node-red ./scripts/integrate-into-nodered.sh
2026-08-22 14:56:38 +02:00
```
2026-08-22 17:36:38 +02:00
## Sidecar :1881 (not recommended)
2026-08-22 14:56:38 +02:00
2026-08-22 17:36:38 +02:00
Only if you explicitly want a separate instance:
2026-08-22 14:56:38 +02:00
2026-08-22 15:23:33 +02:00
``` bash
INSTALL_MODE = sidecar docker compose --profile sidecar up -d --build
```
2026-08-22 14:56:38 +02:00
2026-08-22 17:36:38 +02:00
## Nodes
2026-08-22 14:56:38 +02:00
2026-08-22 17:36:38 +02:00
Palette: **nextcloud collabora ** — six nodes in the same purple, all wired to **nc-collab-config ** (gear icon, not a flow node).
2026-08-22 17:10:34 +02:00
2026-08-22 15:02:38 +02:00
`nc-collab-config` · `collabora-bridge` · `nc-office` · `collabora-convert` · `collabora-extract` · `collabora-transform` · `collabora-wopi`
2026-08-22 14:56:38 +02:00
2026-08-22 21:27:02 +02:00
## Collabora URLs — intern vs publik
- **Intern `collaboraUrl` ** (Node-RED → CODE): plain **HTTP ** — `http://code:9980` när CODE delar nätverk med Node-RED, eller fallback `http://<bridge-ip>:9980` (t.ex. `172.17.0.x` ) efter `docker network connect bridge nextcloud-node-red` . Aldrig HTTPS mot bridge-IP.
- **Publik `collaboraPublicUrl` ** (browser/WOPI): `https://docs.domain.name` — CODE via reverse proxy.
2026-08-22 17:36:38 +02:00
Full guide and examples: * * [docs/NODES.md ](docs/NODES.md )** · import * * [flows/example-flows.json ](flows/example-flows.json )**
2026-08-22 17:10:34 +02:00
2026-08-22 17:36:38 +02:00
## Install on any Nextcloud VM
2026-08-22 17:10:34 +02:00
2026-08-22 17:36:38 +02:00
Copy `.env.example` → `.env` and set at least `NEXTCLOUD_URL` . The rest is auto-detected:
2026-08-22 17:10:34 +02:00
2026-08-22 17:36:38 +02:00
| Variable | Default / auto |
2026-08-22 17:10:34 +02:00
|----------|----------------|
2026-08-22 17:36:38 +02:00
| `NODERED_DIR` | compose label or common paths |
2026-08-22 17:10:34 +02:00
| `CODE_CONTAINER` | `code` |
2026-08-22 17:36:38 +02:00
| `COLLABORA_IP` | bridge IP via `docker inspect` |
2026-08-22 17:10:34 +02:00
| `NODERED_CONTAINER` | `nextcloud-node-red` |
| `NODERED_PORT` | `1880` |
``` bash
2026-08-22 17:36:38 +02:00
cp .env.example .env # set NEXTCLOUD_URL for your VM
2026-08-22 17:10:34 +02:00
git pull
2026-08-22 17:36:38 +02:00
./install.sh # needs root/sudo for docker compose
2026-08-22 17:10:34 +02:00
```
2026-08-22 15:23:33 +02:00
## Repo
2026-08-22 14:56:38 +02:00
2026-08-22 15:23:33 +02:00
https://git.domain.name/your-user/nextcloud-collabora-nodered
2026-08-22 14:56:38 +02:00
2026-08-22 17:36:38 +02:00
## Documentation
2026-08-22 14:56:38 +02:00
2026-08-22 17:36:38 +02:00
- [docs/NODES.md ](docs/NODES.md ) — node reference and examples
- [docs/INFRASTRUCTURE.md ](docs/INFRASTRUCTURE.md ) — server layout