fjudith / docker-draw.io

Dockerized draw.io based on tomcat:9-jre11 & tomcat:9-jre8-alpine official image.
Apache License 2.0
408 stars 480 forks source link

Configuration #45

Closed Buliwif closed 4 years ago

Buliwif commented 4 years ago

Hi,

As a good newbie with Docker, I follow the steps to install/start it. I used "docker run -it --rm --name="draw" -p 8080:8080 -p 8443:8443 fjudith/draw.io"

Now I wish make French default langage but is there a way to include this parameter when running the pod ? Someone would like to be a good teacher to me please ?

Thank You Arno

Buliwif commented 4 years ago

I use a reverseproxy apache so I tried :

RewriteEngine on

# RewriteCond %{QUERY_STRING} !.+
# RewriteRule “/(.+)?” “/$1local=1&lang=fr” [QSA,R]

But it doesn't Work ...

Buliwif commented 4 years ago

Finally i found a way with my reverse proxy.

fjudith commented 4 years ago

Great ! Can you share the setup?

Buliwif commented 4 years ago

Hi, sorry I was with my smartphone that's why my answer was quick :) This work like a charm :

RewriteCond %{QUERY_STRING} !.+
RewriteRule "/(.+)?" "/$1?local=1&lang=fr" [QSA,R]

Thank You for this really helpfull application. Arno.