Urgent.News

What's breaking now, across thousands of outlets.

Tech

Syncing your Obsidian

There are several ways to sync Obsidian, but I decided to document the method I chose, both so I don't forget the details in the future and to help anyone else looking for their own sync solution. For this project, we'll use the Obsidian LiveSync plugin: vrtmrz/obsidian-livesync Creating a VPS on MagaluCloud For the server, I'll create a VPS on MagaluCloud . I'll do the whole process manually,…

There exist various techniques to sync Obsidian, yet I selected to outline the approach I adopted, both for my own reference and to assist others seeking a suitable synchronization solution. In this endeavor, we shall employ the Obsidian LiveSync plugin: vrtmrz/obsidian-livesync.

To establish a VPS on MagaluCloud, the first step is to create a virtual machine manually via the console. Though it is possible to carry out all procedures using the mgc (MagaluCloud command line interface), manual operation offers greater transparency. Open the console and commence by creating a new virtual machine. Navigate to Virtual Machines, then click Create Instance.

Choose the desired Availability Zone (such as br-se1-a in this instance), along with the operating system (Debian 13 LTS was selected). Opt for the most affordable option—a server with 1 vCPU and 1 GB of RAM (BV1-1-20). Allocate a 20 GB local disk for enhanced safety. Ensure a public IPv4 address is assigned, and select an existing SSH key or add a new one if necessary.

Safeguard the generated keys, as misplacement will hinder access to the machine. Assign a meaningful name to the instance and click Create instance.

Once the server is provisioned, access it via SSH using the command: ssh debian@your-ip-here.com. For this project, Docker must be installed. Follow the installation instructions provided in the project's documentation, adding Docker's official GPG key and sourcing Docker's repository to Apt. Afterwards, install Docker CE, containerd.io, docker-buildx-plugin, and docker-compose-plugin.

Next, create a designated directory for your Obsidian LiveSync data and configuration: mkdir -p ~/obsidian-livesync/{couchdb-data,config}. Navigate to this directory and create the file ~/obsidian-livesync/config/local.ini. In this file, specify the CouchDB settings, including single_node configuration, maximum document size, HTTP request size, CORS (Cross-Origin Resource Sharing) settings, and authentication. Don't forget to set a strong password for your CouchDB user.

Finally, configure a reverse proxy and SSL certificate with Caddy. Create the file ~/obsidian-livesync/Caddyfile and input the necessary directives for routing traffic to CouchDB and facilitating secure connections. With these steps completed, your Obsidian LiveSync server should be operational, providing a robust solution for syncing your notes across devices.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

JavaScript is (too) liberal

JavaScript is a remarkably permissive language, which can be both a blessing and a curse for developers. This post explores the liberal aspects of the language and its implications for code quality…

Text correction with Harper

Luiz recently received a recommendation about Harper , a new grammar checking tool developed by Automattic using Rust. The project's repository describes Harper as meeting the developer's specific…

More from Sunday 13 September →