jgraph / docker-drawio

Dockerized draw.io based on whichever is the most secure image at the time.
GNU General Public License v3.0
1.48k stars 359 forks source link

Issue with DRAWIO_LIGHTBOX_URL and local viewer #137

Closed pmenga52 closed 7 months ago

pmenga52 commented 8 months ago

Hi, I would like to use the internal readonly viewer of the docker server (lightbox?) dealing with the docs ( https://github.com/jgraph/docker-drawio/tree/dev/self-contained ), I tested several settings according to the DRAWIO_* parameters

I just installed last version of docker-drawio (22.04) on a local machine ( local DN draw.fc) with the simpliest docker-composed.yml for a local machine

docker-compose.yml

version: '3.5' services: drawio: image: jgraph/drawio container_name: drawio restart: unless-stopped ports:

on the menu: File/Publish/Link + lightbox checked, -> the url link start with https://viewer.diagrams.net (not what I want) File/Publish/Link + lightbox unchecked, -> the url link starts with http://draw.fc but still on edit mode (not read-only)

So at the end, I don't know if the DRAWIO_LIGHTBOX_URL is correctly set (and how it could retrieve the /js/viewer.min.js

m-mohamedin commented 8 months ago

DRAWIO_LIGHTBOX_URL in current version must be different from the BASE/SERVER URL (e.g, a different subdomain)

In the next version, we'll remove this limitation

davidjgraph commented 7 months ago

In 22.1.17