overleaf-sync icon indicating copy to clipboard operation
overleaf-sync copied to clipboard

Support for Community Edition

Open hrvylein opened this issue 4 years ago • 7 comments

Support for CE edition is added and can be used by placing a .olce file in the directory, containing the target url without a closing slash. When the file is missing sync will be done with overleaf.com. I tested it with overleaf.com and my local install with some test syncs. Further testing is appreciated.

hrvylein avatar Nov 20 '20 15:11 hrvylein

Hi @hrvylein thank you for your additions! Unfortunately I currently don't have access to a community server, so I'm not quite sure how to test this.

moritzgloeckl avatar Dec 13 '20 15:12 moritzgloeckl

Maybe with docker? There is a container maintained by Overleaf https://hub.docker.com/r/sharelatex/sharelatex/

hrvylein avatar Dec 22 '20 21:12 hrvylein

Installing a CE on localhost is actually very easy.

sudo apt install docker docker-compose git clone https://github.com/overleaf/toolkit.git sudo vim /etc/group -- (or editor of your choice) and add yourself to the docker group cd toolkit bin/up

And you got a CE server running on http://localhost/

I'm impressed you could do this against the cloud server without looking into the logs, all I managed so far was by studying it workings on my install.

Unfortunately I cannot get overleaf-sync to run against my CE, I get in the log of the CE:

{"name":"web","hostname":"XXX","pid":426,"level":30,"url":"/project","msg":"user trying to access endpoint not in global whitelist","time":"2021-11-18T17:20:27.132Z","v":0}

I'm currently working a git-bridge (in node.js), I really want that to working again and IMO would be a step up from basic sync, since it would force people to merge conflicts instead of deciding who overwrites whom.

Got login working, can download the zip, can upload files, but currently I just can't figure out how to get the folder_id of a project and searching for this I stumbled on this project. Ok, SocketIO something I get from your code, but my client won't connect, and I can't even find the code in the web service source that should handle SocketIO connections.

axkibe avatar Nov 18 '21 17:11 axkibe

Push, very usefull

joleaf avatar May 03 '22 05:05 joleaf

@hrvylein would it be possible to rebase your changes to the current version?

I would really appreciate to use this in our CE hosted instance of the university.

@moritzgloeckl are you interested in a toy overleaf CE instance to test, or did it simply slip through? I think, if the old workflow with overleaf.com still works, testing by others would be enough ?

BenjaminBeichler avatar Nov 24 '22 14:11 BenjaminBeichler

I have update the @hrvylein pull request to support the latest version of overleaf-sync login https://github.com/mone27/overleaf-sync-ce

mone27 avatar Jan 26 '23 18:01 mone27

Thank you @mone27! Just tried it and it works perfect! @moritzgloeckl, would it be possible to merge this pull request?

tramir avatar Feb 22 '23 14:02 tramir