acheong08 / rev-obsidian-sync
- воскресенье, 27 августа 2023 г. в 00:00:04
Reverse engineering of the native Obsidian sync server
Reverse engineered obsidian sync server (NOT OFFICIAL)
Warning
This is an experimental proof of concept. It was written hastily without knowledge of the real internal mechanisms. Expect a thousand bugs and inefficiencies. This is an incomplete reproduction of the server. Many features aren't supported yet. I'm not responsible for any data loss or corruption. Use at your own risk.
Note
If you have the time and energy, feel free to help out with PRs or suggestions.
git clone https://github.com/acheong08/obsidian-sync
cd obsidian-sync
export HOST=<YOUR DOMAIN NAME>
go run cmd/obsidian-sync/main.go
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80 default_server;
listen [::]:80 default_server;
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:3000/;
}
server_name _;
}
go run cmd/signup/main.go
Tested on
While we have no qualms with reverse engineering as a playground for experimentation, Obsidian Sync is a service we intend to keep first-party only for the foreseeable future. - obsidianmd/obsidian-releases#2353
This plugin will not be part of the official community plugins list.
Known bugs:
Report all bugs in this repository.