Skip to content

Support for Community Edition#17

Open
hrvylein wants to merge 3 commits into
moritzgloeckl:masterfrom
hrvylein:ce
Open

Support for Community Edition#17
hrvylein wants to merge 3 commits into
moritzgloeckl:masterfrom
hrvylein:ce

Conversation

@hrvylein

Copy link
Copy Markdown

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.

@moritzgloeckl

Copy link
Copy Markdown
Owner

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.

@hrvylein

Copy link
Copy Markdown
Author

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

@axkibe

axkibe commented Nov 18, 2021

Copy link
Copy Markdown

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.

@joleaf

joleaf commented May 3, 2022

Copy link
Copy Markdown

Push, very usefull

@BenjaminBeichler

Copy link
Copy Markdown

@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 ?

@mone27

mone27 commented Jan 26, 2023

Copy link
Copy Markdown

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

@tramir

tramir commented Feb 22, 2023

Copy link
Copy Markdown

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants