Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chazeon/olgitbridge
Overleaf git bridge, fork of https://gitlab.com/axkibe/olgitbridge with support for the Overleaf v4 frontend
https://github.com/chazeon/olgitbridge
latex overleaf self-hosted sharelatex
Last synced: about 2 months ago
JSON representation
Overleaf git bridge, fork of https://gitlab.com/axkibe/olgitbridge with support for the Overleaf v4 frontend
- Host: GitHub
- URL: https://github.com/chazeon/olgitbridge
- Owner: chazeon
- License: agpl-3.0
- Created: 2023-08-30T21:49:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-21T14:17:17.000Z (10 months ago)
- Last Synced: 2024-03-21T15:35:24.768Z (10 months ago)
- Topics: latex, overleaf, self-hosted, sharelatex
- Language: JavaScript
- Homepage:
- Size: 863 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# olgitbridge
Another Overleaf git bridge. This hack allows you to pull and push changes via git on an Overleaf Community Edition (CE) or Pro server, like shown in the [official Overleaf SaaS announcement](https://www.overleaf.com/blog/the-git-bridge-in-overleaf-v2-is-here). Just use `git clone http://your.server.invalid/`, where your project ID can be seen from your Overleaf instance.
This gitbridge uses the web API of Overleaf to down- and upsync changes. This means it does not need to run on the same server as Overleaf. In fact it is recommended to run it on another so it can directly use https port 443.
Note that contrary to the cloud version this bridge does not use realtime change operations, any files changed by git will result in a "this file has been changed externally" interruption in the online editor.
## Getting started
Start installing (likely on another server than the Overleaf server)
```
git clone https://gitlab.com/chazeon/olgitbridge.git
cd olgitbridge
npm install
```edit config.js in your favorite editor.
If the bridge is running on port 80 and or 443 using authbind may be a good idea.
Start the server with (or without authbind)
```
authbind node src/server.js
```Wrap it in your auto(re)starter/service of your choice.
## Docker container
There is a Dockerfile provided here, feel free to use it for your deployment. Make sure to edit the config before launching the service. It might make sense to mount the `/var/olgitbridge/...` folders, so the content persists a software update. I recommend configuring the basedir before building the container to `/var/olgitbridge/data`.
The container exposes port 5000 by default.
## Dependencies
In development node.js v16.11.0 was used.