Skip to content

How to Set Up Obsidian on a Linux VPS – Your Notes in the Browser

Obsidian in your browser on a Linux server: as a One-Click App with HTTPS and password or via Docker Compose, plus how it differs from Sync and LiveSync.

29 November 202613 min read2 Views0 helpful

Introduction

Obsidian is a popular app for taking notes in Markdown. Your notes are stored as regular text files in a folder called a vault. You link them together, see their connections in the graph, and extend the app with hundreds of plugins. Obsidian is essentially a desktop app for Windows, macOS, and Linux.

The Obsidian One-Click App brings this desktop app to your VPS. It runs there in a container with a lightweight Linux desktop that you control remotely in your browser. You simply open a website and use the actual Obsidian app in it, from any computer and without installing anything. Your notes stay on your server.

Important to note: The app is not a sync server. It does not sync notes with the Obsidian app on your PC or smartphone. The section “Obsidian in the browser, Obsidian Sync, or LiveSync?” explains what you need for that.

In this guide, we’ll show you two ways to get started: the easy way, using the One-Click App, which makes Obsidian available within minutes over HTTPS and with password protection, and the manual installation using Docker Compose. Then you’ll create your first vault and learn how to upload and download files.

When Obsidian on a VPS makes sense

Obsidian in the browser on a VPS is a good fit if:

  • You work on computers where you can’t or aren’t allowed to install anything, such as a work laptop or someone else’s PC. A modern browser is all you need.
  • You want your notes to stay in one fixed location. The vault is stored on your server rather than being spread across multiple devices.
  • You want to find the same Obsidian setup, with your plugins and settings, everywhere. You always open the same installation.
  • Your own device has limited performance. The server does the processing; your device only displays the image. This also works on an older laptop or tablet.

The One-Click App is less suitable if you have Obsidian installed on multiple devices and only want to sync your notes. For that, you need a sync solution such as Obsidian Sync or LiveSync. You also can’t access your notes offline: without an internet connection, the browser window will be blank.

Obsidian in the browser, Obsidian Sync, or LiveSync?

People searching for “self-host Obsidian” often mean different things. Here are the three options:

Obsidian in the browser (this guide)Obsidian SyncSelf-hosted LiveSync
What it isThe desktop app, controlled remotely in a browserObsidian’s paid sync serviceA community plugin with your own CouchDB server
Where notes are storedOn your VPSOn your devices, encrypted by ObsidianOn your devices and in your CouchDB
What you installJust a browser on your deviceObsidian on each deviceObsidian and the plugin on each device
Works offlineNoYesYes

If you want to sync your Obsidian apps on your PC and smartphone through your own server, use the Obsidian Livesync One-Click App from the app catalog instead of this app. It provides the CouchDB server for the plugin. You can also combine both options and set up your sync account or the LiveSync plugin in Obsidian in the browser.

Info: Obsidian license

Obsidian is not open-source software; it’s a free app with its own terms of use. Check the license terms on obsidian.md to make sure your use is covered, for example in a business setting.

The easy way: Obsidian as a One-Click App

The quickest way to get Obsidian is through your VPS’s One-Click Apps. With a domain, the app is available directly over HTTPS and protected by a login. You don’t need a reverse proxy, certificate, or firewall rules.

Requirements

  • A Linux VPS (Debian or Ubuntu) with One-Click Apps set up. See Set up One-Click Apps for instructions.
  • Enough storage space: The image includes a full Linux desktop along with Obsidian and is around 5 GB in size. Allow at least 10 GB of free storage for the app and your notes.
  • Enough memory: On our test VPS, Obsidian used just under 1 GB of RAM with a session open. You’ll be on the safe side with 2 GB of free RAM.

Install

  1. Open your VPS in the ZapX dashboard and go to the One-Click Apps tab.
  2. Search the app catalog for Obsidian and click Install app. Make sure you select the right entry: Obsidian Livesync is the sync server, not the app itself.
  3. Use a custom subdomain or zap.cloud is already selected, with a random name. Leave the option enabled or enter your own name, for example notes.
  4. Under App configuration, you’ll see PUID, PGID, and TZ. You don’t need to change anything. To set the time in Obsidian to match Germany, enter Europe/Berlin for TZ.
  5. Click Queue installation.

The first startup takes a few minutes because of the large image. The app card will then show Online.

First login

Obsidian is protected by a username and password. Both are generated automatically during installation:

  1. Click the gear icon on the app card and open App environment.
  2. Under Automatically generated values, you’ll find SERVICE_USER_OBSIDIAN (username) and SERVICE_PASSWORD_OBSIDIAN (password). Click the eye icon to show them, or the icon next to it to copy them.
  3. Open Obsidian using the Access link on the app card. Your browser will ask for a username and password. Enter both values.
Warning: You need both values

The Login note on the app card only shows the password. You also need the username from SERVICE_USER_OBSIDIAN to log in.

The app can’t be accessed without logging in; every request will return a 401 error.

Warning: Treat your login details like a root password

Anyone who can log in can do more than just view and edit your notes. According to the image project, the desktop also includes a terminal with sudo and no password, which gives root privileges inside the container. Only share the login details with people you trust, and store them in a password manager.

Create your first vault

After logging in, you’ll see the Obsidian start screen, just like in the desktop app:

  • Quick start immediately creates and opens a vault named Obsidian Vault. This is the easiest option to get started.
  • Create new vault creates a vault with a name of your choice.
  • Open folder as vault opens an existing folder containing Markdown files, for example after you’ve uploaded notes.
  • Open vault from Obsidian Sync opens a vault from your Obsidian Sync account.

At the very bottom, you can change Obsidian’s language, for example to German.

Everything you create in Obsidian is stored in the container’s /config folder. The vault created with Quick start is located in /config/Obsidian Vault.

Upload and download files

The browser interface is provided by Selkies, a tool for remote desktops in the browser. You’ll see a narrow marker along the left edge of the screen. Click it to open a sidebar:

  • FILES > Upload Files uploads files from your computer to the container. They’re saved in the /config/Desktop folder. From there, move them into your vault in Obsidian or open the folder using Open folder as vault.
  • FILES > Download Files downloads files from the container to your computer, such as individual notes.
  • CLIPBOARD can help if copy and paste between your computer and Obsidian doesn’t work directly.
  • Under SCREEN SETTINGS and VIDEO SETTINGS, you can adjust the resolution and image quality, for example if your connection is slow.
Info: Sharing link under SHARING

Under SHARING, Selkies displays a link for viewers. This link also requires a username and password, so no one can see your screen without logging in.

Updates and backups

Update Obsidian in the app settings (gear icon) under App update. Click Check for updates, then install a new version using Apply update. If it says the app is up to date, there isn’t a newer version in the app catalog yet. The update replaces the image, but your vaults and settings in /config are preserved.

You can back up your entire VPS under Backups in the dashboard. It’s also a good idea to keep a separate copy of your notes, as described in the section “Working with your notes on the server.”

Manual installation

The rest of this guide covers the manual installation of Obsidian with Docker Compose on your VPS. This is useful, for example, if you don’t use One-Click Apps on your server or want to run Obsidian behind your own reverse proxy. We’ll use the linuxserver.io image, which is also used by the One-Click App.

Requirements

  • A Linux VPS running Debian or Ubuntu with SSH access; see First connection via SSH.
  • Docker and Docker Compose (Compose v2); see Install Docker. Check the installation with docker --version and docker compose version.
  • A domain or subdomain whose A record points to your VPS’s IP address (e.g. obsidian.example.com).

The container runs a Linux desktop, Obsidian, and a streaming service that sends the image to your browser. This requires more resources than a typical web app. The values below are guidelines based on our test with Obsidian alone:

HardwareMinimumRecommended
CPU2 vCPU cores4 vCPU cores
RAM2 GB4 GB
Storage10 GB20 GB

Prepare the firewall

Obsidian listens in the container on port 3000 (HTTP) and 3001 (HTTPS with a self-signed certificate). In this guide, you’ll access Obsidian only through a reverse proxy, so you don’t need to open either port. With ufw, allow only SSH and the ports for the reverse proxy:

Code
ufw allow OpenSSH
ufw allow 80/tcp
ufw allow 443/tcp
ufw enable
Warning: Docker bypasses ufw

Ports published by Docker using ports: are accessible from outside even if ufw blocks them. Therefore, bind Obsidian to 127.0.0.1 as described below. Learn more about the firewall in Open ports and manage the firewall.

Install with Docker Compose

Create a directory for Obsidian:

Code
mkdir -p /opt/obsidian
cd /opt/obsidian

First, save your login details in a .env file. Generate a random password with openssl rand -base64 24:

Code
OBSIDIAN_USER=obsidian
OBSIDIAN_PASSWORD=CHANGE_ME

Replace CHANGE_ME with your password and protect the file with chmod 600 .env. Then create the docker-compose.yml file, for example with nano docker-compose.yml:

Code
services:
  obsidian:
    image: lscr.io/linuxserver/obsidian:1.15.1
    container_name: obsidian
    restart: unless-stopped
    security_opt:
      - seccomp=unconfined
    shm_size: "1gb"
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Berlin
      - CUSTOM_USER=${OBSIDIAN_USER}
      - PASSWORD=${OBSIDIAN_PASSWORD}
    volumes:
      - ./config:/config
    ports:
      - "127.0.0.1:3000:3000"

Here’s what the important lines do:

  • image: The Obsidian image from linuxserver.io, pinned to a specific version. This lets you decide when to update.
  • CUSTOM_USER and PASSWORD: The username and password for logging in through the browser (HTTP Basic Auth). Without these two lines, the interface is accessible without any login, and anyone with the address could read and edit your notes. The image project considers Basic Auth alone sufficient only on a trusted network. Therefore, always use HTTPS when accessing Obsidian externally and set a long, random password, or access Obsidian only through a VPN as an additional layer of protection.
  • seccomp=unconfined: Obsidian is an Electron app. Without this line, Docker’s system call restrictions can interfere with the app. That’s why the image documentation includes it, and the One-Click App also sets it.
  • shm_size: Gives Obsidian 1 GB of shared memory. The app may crash with Docker’s default of 64 MB.
  • ./config:/config: Your vaults, Obsidian settings, and all uploaded files are stored here. You’ll back up this folder later.
  • 127.0.0.1:3000:3000: Obsidian is accessible only from the server itself, and externally only through the reverse proxy.

Download the image and start Obsidian:

Code
docker compose pull
docker compose up -d
docker compose logs -f obsidian

Downloading the image, which is around 5 GB, takes a while. Obsidian is ready when the line [ls.io-init] done. appears in the log. Exit the log view with Strg+C.

First access

Until the reverse proxy is set up, access Obsidian through an SSH tunnel. Run this command on your own PC:

Code
ssh -L 3000:127.0.0.1:3000 root@SERVER_IP

Then open http://localhost:3000 in your browser, log in with the values from .env, and create your vault as described above in “Create your first vault.”

Access over HTTPS through a reverse proxy

To access Obsidian externally, put a reverse proxy with a valid certificate in front of it. For the basics, see Set up a reverse proxy with nginx and Create an SSL certificate (Let's Encrypt). Here’s a server block for nginx:

Code
server {
    listen 80;
    server_name obsidian.example.com;

    location / {
        proxy_pass http://127.0.0.1:3000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_buffering off;
        proxy_read_timeout 86400;
    }
}

Then obtain the certificate with certbot --nginx -d obsidian.example.com. Certbot adds HTTPS and HTTP redirection to the block. The lines with Upgrade and Connection are important: the image and input are sent over a WebSocket connection. Without them, the connection won’t be established after login. proxy_read_timeout prevents nginx from disconnecting an idle session after one minute.

Info: Use HTTPS only

Only run Obsidian externally over HTTPS. With plain HTTP, your username and password would be transmitted unencrypted, and the browser would block features such as the clipboard.

Find more tips for securing your server in Linux security tips.

Back up your data

Everything Obsidian saves is stored in /opt/obsidian/config: your vaults, Obsidian settings and plugins, and files uploaded to the Desktop subfolder. Briefly stop Obsidian to create a consistent backup:

Code
cd /opt/obsidian
docker compose stop
tar czf obsidian-backup-$(date +%F).tar.gz config docker-compose.yml .env
docker compose start

The file also contains your password from .env. Keep it secure and don’t store it only on the VPS itself.

Update Obsidian

Back up the config folder first. Then enter the new version for the image in docker-compose.yml and restart Obsidian:

Code
cd /opt/obsidian
docker compose pull
docker compose up -d
docker image prune

Available versions are listed on the image’s release page. Your data in the config folder is preserved during the update. docker image prune then removes the old image and frees up several GB of storage.

Working with your notes on the server

Once you’ve set everything up, you can use Obsidian as usual. A few things work differently on a server than on your own PC.

Vault files directly on the server

Your notes are regular Markdown files. You can access them even without Obsidian:

  • One-Click App: The data is stored in the app’s Docker volume. Connect using SFTP as root and find it under /var/lib/docker/volumes/, in the folder ending in _obsidian-config, and then in _data.
  • Manual installation: The files are stored in /opt/obsidian/config.

This lets you upload an existing vault from your PC, for example, or regularly back up your notes to another computer. Files you upload as root initially belong to root. The next time the app restarts, the container resets the permissions in the /config folder to its own user, after which Obsidian can edit them.

Plugins and settings

Set up community plugins, themes, and keyboard shortcuts in Obsidian under Settings, just like in the desktop app. They’re stored in the .obsidian subfolder of the relevant vault and are preserved when the app is updated. Plugins run on your server and have access to your notes there. Only install plugins you trust.

Some keyboard shortcuts, such as Strg+W or Strg+T, are intercepted by your browser before they reach Obsidian.

Limitations

  • No syncing with other devices: The app is not a sync server. To sync with Obsidian on your PC or smartphone, use Obsidian Sync or the Obsidian Livesync One-Click App.
  • Online only: You can’t access your notes without an internet connection to the server.
  • One session for everyone: Anyone who logs in with the same credentials can see and control the same interface. The app isn’t designed for teams with separate accounts; a notes server such as Joplin Server is a better fit.
  • Designed for a mouse and keyboard: The interface works in a smartphone browser, but using a desktop app on a small screen is cumbersome.

Conclusion

With Obsidian on your VPS, you can access your notes, plugins, and settings in any browser without installing anything on your device. Your notes stay on your server, protected by a username and password. If you need to sync across multiple Obsidian apps instead, Obsidian Sync or LiveSync is the right option.

Prefer not to handle Docker yourself? Use the easy One-Click App option described above in “The easy way: Obsidian as a One-Click App.”

Free tools

Related tools for servers and developers

View all

FAQ

Frequently asked questions

No. The Obsidian One-Click App runs the Obsidian desktop app on your VPS, which you control remotely in your browser. It does not sync notes with Obsidian on your PC or smartphone. For syncing, use Obsidian Sync, Obsidian’s paid service, or the community plugin Self-hosted LiveSync together with the Obsidian Livesync One-Click App, which provides the required CouchDB server.
The One-Click App is the quickest option: Obsidian is available over HTTPS at your domain within minutes, a username and password are generated automatically, and you can apply updates from the dashboard. Manual installation with Docker Compose is a good choice if you don’t use One-Click Apps on your server, want to run Obsidian behind your own reverse proxy or only through a VPN, or want to control the version yourself.
Click the gear icon on the app card and open App environment. Under Automatically generated values, SERVICE_USER_OBSIDIAN is the username and SERVICE_PASSWORD_OBSIDIAN is the password. The note on the app card only shows the password, but you need both values to log in. With a manual installation, use the values you set for CUSTOM_USER and PASSWORD.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.