Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Community Edition #17

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

hrvylein
Copy link

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
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
Author

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

@axkibe
Copy link

axkibe commented Nov 18, 2021

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
Copy link

joleaf commented May 3, 2022

Push, very usefull

@BenjaminBeichler
Copy link

@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
Copy link

mone27 commented Jan 26, 2023

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

@tramir
Copy link

tramir commented Feb 22, 2023

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