9e5a7c0aeb
Detect host LAN IP and CODE URL so OCS/Collabora work unattended on each VM. Avoid 127.0.1.1 Nextcloud DNS and HTTP-to-TLS CODE.
32 lines
1.2 KiB
Bash
32 lines
1.2 KiB
Bash
# Environment for install.sh / integrate-into-nodered.sh
|
|
# Copy to .env and adjust per VM.
|
|
|
|
# Nextcloud (used in example flows and install hints — does not change node code)
|
|
NEXTCLOUD_URL=https://cloud.domain.name
|
|
NEXTCLOUD_PUBLIC_URL=https://cloud.domain.name
|
|
|
|
# Collabora CODE
|
|
# COLLABORA_URL: https://code:9980 när CODE delar Docker-nätverk med Node-RED
|
|
# (integrate-into-nodered.sh connectar CODE till nodernätet automatiskt).
|
|
# Fallback om 'code' inte kan resolvas: https://<CODE-IP>:9980.
|
|
# ALDRIG http://127.0.0.1:9980 eller http://host.docker.internal:9980 —
|
|
# CODE lyssnar bara på HTTPS internt och kör inte på Node-RED-värden.
|
|
# verifyTls=false sätts i nc-collab-config-noden (self-signed cert internt).
|
|
CODE_CONTAINER=code
|
|
COLLABORA_IP=
|
|
COLLABORA_URL=https://code:9980
|
|
|
|
# Existing Node-RED install (integrate mode)
|
|
NODERED_DIR=
|
|
NODERED_CONTAINER=nextcloud-node-red
|
|
NODERED_PORT=1880
|
|
INSTALL_USER=
|
|
|
|
# Sidecar mode (not default)
|
|
NC_HOST=cloud.domain.name
|
|
# Host-LAN-IP för extra_hosts. Tomt = auto-detekteras av integrate-into-
|
|
# nodered.sh (hostname -I, 192.168.x/10.x), fallback 192.168.1.10.
|
|
NC_HOST_IP=
|
|
TZ=Europe/Stockholm
|
|
NODERED_CREDENTIAL_SECRET=change-this-secret-in-production
|