Frontend part for LinShare editor tool using OnlyOffice
You can update the .env
file to define the instance to reach, or override it in a new .env.development.local
file.
You should follow Vue.js rule for variables in .env*
by having VUE_APP_
prefix in your configurations.
The .env*
files currently support following configurations:
VUE_APP_LINSHARE_URL
: Base url of LinshareVUE_APP_BACKEND_URL
: Base url of Document ServerVUE_APP_DOCUMENT_SERVER_URL
: Base url of LinShare backend editorVUE_APP_LINSHARE_UI_USER_URL
: Base url of LinShare frontend app for user
You can also update configurations in ./public/config/config.js
, configurations inside this file have highest priority, which means that it will override all the configurations in .env*
files. It's main purpose is to allow updating configurations on production mode without having to rebuild the app, but you can also use in it development stage.
The config.js
in development mode currently supports following configurations:
LINSHARE_URL
: Base url of LinShareDOCUMENT_SERVER_URL
: Base url of Document ServerBACKEND_URL
: Base url of LinShare backend editorLINSHARE_UI_USER_URL
: base url of LinShare frontend app for user
npm install
npm run serve
npm run build
npm run lint
npm run test:unit
npm run test:e2e
For docker deployment, checkout dockerfile repository.
You can update configurations on runtime without rebuilding the docker image by running the container with a volume:
$ docker run -d \
-e LINSHARE_BACKEND_HOST=<linshare-backend-host> \
-e LINSHARE_BACKEND_PORT=<linshare-backend-port> \
-p 8888:80 \
-v $PWD/public/config:/usr/local/apache2/htdocs/linshare-ui-editor-onlyoffice/config \
linagora/linshare-ui-editor-onlyoffice
this way you can update the configurations in ./public/config/config.js
from your host machine.
The config.js
in production mode currently supports following configurations:
DOCUMENT_SERVER_URL
: Base url of Document ServerBACKEND_URL
: Base url of LinShare backend editorLINSHARE_UI_USER_URL
: Base url of LinShare frontend app for user