Deploying Nootion
Nootion runs in a single container (API + web interface), with no database server or Redis next to it.
All data lives in the folder mounted on /data:
Path in /data |
Content |
|---|---|
nootion.db (+ -wal, -shm while the app runs) |
The SQLite database: accounts, pages, databases, shares |
uploads/ |
Files attached to pages and database rows (images, PDFs…). One file per attachment, named by its id. Empty when they are kept in a bucket (see Attached files in S3-compatible storage). |
avatars/ |
Profile pictures |
icons/ |
Page icons uploaded by people |
vapid.json |
The keys that sign notifications sent to phones and computers (made at the first start) |
plugins/ |
Plugins installed by hand (see PLUGINS.md) |
plugin-data/ |
Files kept by plugins |
Backing up Nootion = backing up this folder, with any backup tool, or with periodic snapshots if it sits on
ZFS or Btrfs. Markdown exports (pages) and CSV/JSON exports (databases) can be
downloaded from the interface; they give you your data in a readable format, they don't replace backups.
The admin can also download a full backup from Administration › Backup (a .zip to unzip into /data, with the container stopped, to restore).
Automatic backups (Administration › Automatic backups) make that same .zip every day or every week, at a set
time, and keep the last copies (nootion-backup-YYYY-MM-DD-HHMM.zip; other files in the folder are left alone).
They go to:
- a folder of the server: mount one in the container, for example a NAS share, with
-v /volume1/backups/nootion:/backups, and type/backups; - a WebDAV folder, such as a Nextcloud one: its WebDAV address (Files › Settings › WebDAV in Nextcloud, followed by
the folder, e.g.
https://cloud.example.com/remote.php/dav/files/boris/Backups/Nootion), a user name and an app password (stored encrypted withAPP_SECRET).
"Back up now" tries the destination at once; the page shows the next run and how the last one went.
#Environment variables
| Variable | Required | Description |
|---|---|---|
APP_URL |
yes | Address typed in the browser, without a trailing / (e.g. http://<yourLocalIp>:3000 or https://mynootion.example.com). Used for invitation links, iCal links and CSRF protection: always open Nootion at this address. |
APP_SECRET |
yes | Random string of at least 16 characters (openssl rand -hex 32). Generate it once and never change it: it encrypts the secrets kept in the database (plugin settings and accounts, the SSO client secret, the e-mail and backup passwords) and signs cookies. Changing it means typing those secrets again. With docker-compose.yml, it is read from a .env file next to it (see .env.example, which also gives the PowerShell command for Windows); Docker refuses to start without it, and the server refuses the examples of older versions of the file. |
TZ |
no | Time zone (e.g. Europe/Paris). |
PORT |
no | Port the server listens on inside the container (default 3000). To change the port on the host, change ports: instead. |
MAX_UPLOAD_MB |
no | Maximum size of an attached file, in MB (default 50). |
IMPORT_MAX_MB |
no | Maximum size of an import from files (all the files sent at once, archives included), in MB (default 500). Once uncompressed, archives may hold up to four times as much. |
DEMO_PAGE |
no | false to stop giving new users a demo page on their first visit (default: given). |
UPDATE_CHECK |
no | false to stop looking for new releases (default: the server asks GitHub twice a day, sending nothing about your server, and tells administrators). |
OCR_LANGS |
no | Languages read in images and scanned PDFs, joined by + (default fra+eng). The image ships French and English; other languages need their tesseract-ocr-<lang> package. |
TRUST_PROXY |
no | Which reverse proxies are believed about the visitor's address (X-Forwarded-For, X-Forwarded-Proto). Default: proxies on the server itself or its private network (10.x, 172.16–31.x, 192.168.x, fc00::/7). true trusts any, false none, or give a list of addresses and ranges (203.0.113.4, 198.51.100.0/24). See Securing your instance. |
CONTENT_SECURITY_POLICY |
no | off to stop sending the Content-Security-Policy with the interface (only needed for a hand-installed plugin that loads scripts from another site). |
API_RATE_LIMIT |
no | Requests a personal API token can make per minute (default 300). See API.md. |
FILES_S3_BUCKET … |
no | Keeps attached files in an S3-compatible bucket instead of /data/uploads. See Attached files in S3-compatible storage. |
If Nootion sits behind an HTTPS reverse proxy, put the https://… URL in APP_URL: the session cookie then becomes Secure
(examples for Caddy and Nginx in Securing your instance).
To connect Claude's connectors to Nootion, that address must be reachable from the internet (see MCP.md).
The proxy must let WebSockets through on /collab (real-time collaborative editing): in Nginx Proxy Manager, tick Websockets Support.
/api/events is a long-lived stream (server-sent events) that keeps the sidebar up to date when others add pages: Nootion asks Nginx not to buffer it; other proxies may need buffering turned off for it.
Also check its upload size limit (client_max_body_size in Nginx) for attached files.
#Installing with Docker
The image is published on GitHub's registry for amd64 and arm64: ghcr.io/btronquo/nootion.
Tags: latest (last release), 3.4.0, 3.4 (last 3.4.x), and develop (development version, to try what's coming;
not for data you care about).
#With Docker Compose (recommended)
mkdir nootion && cd nootion
curl -O https://raw.githubusercontent.com/btronquo/Nootion/main/docker-compose.yml
curl -o .env https://raw.githubusercontent.com/btronquo/Nootion/main/.env.example
# Set APP_SECRET (openssl rand -hex 32) and APP_URL in .env, then:
docker compose up -dOpen APP_URL in the browser: the page that creates the administrator account shows up, with a choice of language.
Once the account exists, the setup assistant goes through the main settings one step at a time: e-mail, sign-in and
security (passkeys, single sign-on), backups, the AI assistant, plugins and the team. Every step can be skipped and
everything stays in Administration; "Finish later" leaves a card there to resume it, and /admin/setup opens it
again at any time. Settings that come from variables (APP_URL, FILES_S3_*) are shown, not changed, by the
assistant. Each new account then gets a short guided tour of the features, which My account opens again.
docker-compose.yml keeps the data in a named Docker volume, nootion-data.
To keep it in a folder of the host instead (easier to back up), replace the volume with
- /path/to/nootion-data:/data. The container runs as UID 1000: give it the folder (chown -R 1000:1000 /path/to/nootion-data),
or run it as the folder's owner with user: "UID:GID". Otherwise it stops at startup with a message explaining why.
#With docker run
docker run -d --name nootion --restart unless-stopped \
-p 3000:3000 \
-e APP_URL=http://localhost:3000 \
-e APP_SECRET=$(openssl rand -hex 32) \
-e TZ=Europe/Paris \
-v nootion-data:/data \
ghcr.io/btronquo/nootion:latestKeep the generated APP_SECRET (docker inspect nootion shows it): the same one must be given again when the
container is recreated.
#Updating
docker compose pull && docker compose up -dDatabase migrations are applied automatically at startup. Back up the data folder before a major update, and
read the CHANGELOG. To stay on a version, use its tag (ghcr.io/btronquo/nootion:2.0.1)
instead of latest.
The version running shows at the bottom of the sidebar and of the Administration page. When a newer release is out, administrators see a ⚠ next to "Administration" and a notice at the top of that page, which they can hide until the next release.
#Building the image from the source code
git clone https://github.com/btronquo/Nootion.git nootion && cd nootionThen build and start it with the docker-compose.build.yml overlay (a plain docker compose up --build keeps
using the published image):
docker compose -f docker-compose.yml -f docker-compose.build.yml up -d --buildTo update: git pull, then the same command. To try the develop branch, git checkout develop first.
#Securing your instance
Nootion is made to be reached from the internet, but a few choices are yours.
Use HTTPS. Put Nootion behind a reverse proxy that holds the certificate, and set APP_URL to the https://…
address: the session cookie then becomes Secure and browsers are told to stay on HTTPS (HSTS). With Caddy, the
whole configuration is:
notes.example.com {
reverse_proxy nootion:3000
}With Nginx (Nginx Proxy Manager does the same with Websockets Support ticked):
server {
listen 443 ssl;
server_name notes.example.com;
# ssl_certificate and ssl_certificate_key here
client_max_body_size 500m; # IMPORT_MAX_MB (attached files: MAX_UPLOAD_MB)
location / {
proxy_pass http://127.0.0.1:3000;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade; # /collab (live editing)
proxy_set_header Connection "upgrade";
proxy_buffering off; # /api/events
}
}The visitor's address. Sign-in attempts are limited per address (10 a minute) and per account (20 wrong
passwords in 15 minutes). Behind a proxy, the address comes from the X-Forwarded-For header, which Nootion only
believes from a proxy on the same machine or private network. If your proxy has a public address (another
server, a CDN), give it in TRUST_PROXY; if Nootion is reached directly, with no proxy, set TRUST_PROXY=false.
Have the proxy replace X-Forwarded-For (as above) rather than add to what the visitor sent.
What is off by default, and administrators can turn on:
| Setting | Where | Turn it on when |
|---|---|---|
| Webhooks to the local network | Administration › Security | Buttons must call a service at home or in the company (Home Assistant, n8n…). Anyone who can edit a page can then make the server call local addresses. |
| Previews of local network links | Administration › Plugins › Embeds | People paste links to local services and want their preview. |
And what is on by default and may be turned off: Link existing accounts by their e-mail address in the SSO settings (see SSO.md).
Who can do what. Keep these in mind when you invite people:
- An administrator can read every backup, install plugins and change every setting: it is full control of the data.
- A plugin installed in
/data/pluginsruns with the server's rights (see PLUGINS.md). - A member sees the pages of their spaces and those shared with them, and, in the people lists, only those they work with. They can create shared spaces, API tokens for their own spaces, and public links to pages they can edit.
- A guest only sees the pages shared with them (and their subpages), with no space of their own, no people directory beyond those pages and no API tokens; they can't share nor publish. Administrators can turn guests off in Administration › Guests.
- A public link shows a page (and its subpages if chosen) read-only to anyone who has the address; a public form lets them add rows. Both are revoked from where they were made, and can ask for a password or stop on a date.
- The step of a button runs with the rights of the person who clicks it, not of who wrote it: look at what a button does before clicking one in a page someone else edits.
Browsers get a Content-Security-Policy with the interface: only scripts served by Nootion run, and Nootion can't be shown inside another site (public pages and forms can). Attached files that a browser could run (HTML, SVG) are always downloaded, never displayed.
To report a vulnerability, see SECURITY.md.
#Activity log
Administration › Activity log lists who did what on the server, latest first:
- Sign-ins: successful ones (password, password and code, passkey, SSO), failed ones with the reason (wrong password, unknown address, disabled account, wrong code…) and sign-outs.
- Accounts: accounts created (first administrator, invitation, SSO, company directory), passwords changed or reset, e-mail addresses changed, two-step sign-in turned on or off, passkeys added or removed, API tokens created or revoked, accounts deleted.
- People and roles: invitations created or cancelled, roles changed, accounts disabled or enabled (also by SCIM), two-step sign-in reset by an administrator, groups made, renamed or deleted, people added to a group or taken out.
- Sharing and public links: pages shared or unshared (with whom or with which group, with which access), guests invited, public links and public form links created, changed (password, end date) or removed, members and groups added to a space, their role changed, or removed.
- Deletions and spaces: pages moved to the trash, restored or deleted for good, spaces created, emptied or deleted.
- Exports and backups: pages and spaces exported, the full backup downloaded, a backup started by hand.
- Settings: changes in Security, E-mail, SSO, automatic backups and plugins (the names of the settings changed, never the passwords or keys), SCIM tokens made or removed.
Each line has the person (their name is kept after their account is deleted), what the action was about (a page's title, a person, a space), a few facts (the role given, the settings changed) and the visitor's address (see The visitor's address behind a proxy). Page content is never written in the log.
Filters narrow it by family of actions, person, words (a name, an address, a page title) and days; Export as CSV downloads the lines the filters show (separated by semicolons when the browser is in French, so spreadsheets set to French open it as columns). Keep the log chooses how long lines stay: 30 days, 3 or 6 months, 1 year (the default), 2 years or forever; older lines are deleted every hour. The log is only added to: nobody, administrators included, can change or delete a line from the interface.
The API offers the same for scripts run by an administrator: GET /api/admin/audit (parameters category,
action, actorId, q, from, to, limit, and before with the next value of the previous answer) and
GET /api/admin/audit/export for the CSV.
#Attached files in S3-compatible storage
By default attached files (images, PDFs, videos…) are kept in /data/uploads. A larger instance can keep them in a
bucket instead: AWS S3, MinIO, Garage, Backblaze B2, Cloudflare R2, Scaleway, OVHcloud, Wasabi… anything that speaks
the S3 protocol. Nothing changes for people: files are still uploaded to and read through Nootion, which checks who
may see them. The settings are given in the environment only, never stored in the database.
| Variable | Description |
|---|---|
FILES_S3_BUCKET |
The bucket's name. Setting it turns the bucket on. Make the bucket first, private (no public access). |
FILES_S3_ACCESS_KEY_ID, FILES_S3_SECRET_ACCESS_KEY |
A key allowed to read, write, delete and list objects in this bucket only (AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY are read too). |
FILES_S3_ENDPOINT |
The service's address, for anything but AWS: http://minio:9000, https://<account>.r2.cloudflarestorage.com, https://s3.eu-central-003.backblazeb2.com… Default: https://s3.<region>.amazonaws.com. |
FILES_S3_REGION |
The region (default us-east-1; auto for Cloudflare R2). |
FILES_S3_PREFIX |
Put before every file's name, for instance nootion/, so that several instances (or other things) can share a bucket. Files outside the prefix are never touched. |
FILES_S3_PATH_STYLE |
true for addresses like http://host/bucket/file, false for http://bucket.host/file. Default: true with FILES_S3_ENDPOINT (MinIO, Garage and most self-hosted servers want it), false for AWS. |
FILES_S3_REDIRECT |
true to send browsers straight to the bucket for downloads, with a link signed for 5 minutes, once Nootion has checked access. It saves the server's bandwidth; the bucket must then be reachable by the browsers. Default: files go through Nootion. |
For example, next to a MinIO container in docker-compose.yml:
environment:
FILES_S3_BUCKET: nootion-files
FILES_S3_ENDPOINT: http://minio:9000
FILES_S3_ACCESS_KEY_ID: nootion
FILES_S3_SECRET_ACCESS_KEY: ${MINIO_NOOTION_SECRET}At start-up Nootion checks that the bucket can be reached with these keys, and stops with the reason in its log if
not (Attached files: Bucket "nootion-files": AccessDenied…). Once it runs, the log says
Attached files are kept in s3://nootion-files/….
What changes with a bucket:
- Backups (the download and the automatic ones) hold the database, profile pictures, icons and plugins, but not
the attached files: an
ATTACHED-FILES.txtnote in the .zip says which bucket holds them, and Administration › Backup says so too. Back up the bucket on its side (versioning, replication, or a copy withrclone). To restore, unzip the backup into/dataand start Nootion with the sameFILES_S3_*settings. - Text extraction and OCR for search read each new file from the bucket once (into a temporary file).
- Single files are sent in one request: up to 5 GB, far above
MAX_UPLOAD_MB.
#Moving existing files
A command copies the files of /data/uploads to the bucket, or back. Files already in the destination with the same
size are skipped, so it can be stopped and run again. The FILES_S3_* settings must be set for it in both
directions (to know the bucket).
To move an instance to a bucket without a moment where files are missing:
- Copy the existing files while Nootion keeps running on the folder (the settings are given to the command only):sh
docker compose exec -e FILES_S3_BUCKET=nootion-files -e FILES_S3_ENDPOINT=http://minio:9000 \ -e FILES_S3_ACCESS_KEY_ID=nootion -e FILES_S3_SECRET_ACCESS_KEY=… nootion node dist/files-move.js to-bucket - Add the
FILES_S3_*settings to the container and restart it: files are now read from and written to the bucket. - Run the command once more, for the files added since step 1, removing each file from
/data/uploadsonce its copy is checked:shdocker compose exec nootion node dist/files-move.js to-bucket --remove-source
To bring files back to the data folder: run
docker compose exec nootion node dist/files-move.js to-folder (with --remove-source to empty the bucket's
prefix), then remove the FILES_S3_* settings and restart. Files added between the two are in the bucket: run the
command once more before removing the settings, or do it with the container stopped
(docker compose run --rm nootion node dist/files-move.js to-folder).
#Single sign-on (SSO)
People can sign in with their company account (Microsoft Entra ID, Google Workspace, Okta, Keycloak… any OpenID Connect provider), set in Administration > Single sign-on (SSO), and SCIM lets the provider disable those who leave. The server must reach the provider over HTTPS. See SSO.md for the steps in Entra ID.
#Passkeys
Everyone can add passkeys in My account > Passkeys (fingerprint, face, the phone's screen lock, a password manager or a security key) and then use Sign in with a passkey on the sign-in page, with no e-mail, password or code to type. A passkey counts as both steps of two-factor authentication; the password keeps working beside it.
Browsers only hand out passkeys over HTTPS (or on localhost), and only to the address they were made on: the
host name of APP_URL (mynootion.example.com for https://mynootion.example.com). So set APP_URL to the exact
https://… address people type. Over plain HTTP the sign-in page shows no passkey button and My account says why;
opened at another address than APP_URL, My account says which one to use. Changing the host name later makes the
passkeys already added stop working (people add them again; their password still works). Where SSO is required for
everyone, a passkey signs in only those who may still use a password (administrators).
#Sending e-mail
Nootion sends nothing by e-mail until an administrator sets it up in Administration > E-mail:
- SMTP: any mail server or service (your host's, Gmail with an app password, Brevo, Mailgun, Amazon SES…). Usually port 587 with STARTTLS, or 465 with SSL/TLS.
- Resend: an API key with the right to send, and the sender's domain verified in Resend.
"Send a test e-mail" checks the settings. The password or key is stored encrypted with APP_SECRET. Once set up,
reminders, mentions and replies are also e-mailed (each user can turn them off in My account), invitations with an
address are sent to it, and the sign-in page offers "Forgot your password?".
#Installing the app on a phone or computer
Nootion is a web app that can be installed (PWA): it then opens in its own window, with its icon on the home screen.
Browsers only offer this over HTTPS (or on localhost), so put Nootion behind an HTTPS reverse proxy first
(Nginx Proxy Manager, Caddy, Traefik, or a Tailscale / Cloudflare tunnel) and set APP_URL to the https://… address.
- Android (Chrome, Edge, Samsung Internet): open Nootion, then menu › Install app (or Add to home screen).
- iPhone / iPad (Safari): Share button › Add to Home Screen.
- Computer (Chrome, Edge): the install icon at the right of the address bar.
On a phone the sidebar opens from the ☰ button, a toolbar above the keyboard gives the "/" menu, formatting, lists, indentation and moving blocks, and database tables show as cards (tap one to edit the row). A new version of Nootion reaches installed apps the next time they open.
#Offline
Pages and databases already opened on a device stay available without network, in the installed app or in the browser
(the service worker needs HTTPS here too, except on localhost):
- Page content is kept on the device and can be edited offline. When the connection comes back it is merged with the changes others made meanwhile, with no conflict (the editor is built on Yjs).
- Database cells, page titles and icons changed offline wait in a queue and are sent in order when the connection comes back. If someone changed the same cell meanwhile, the last change sent wins.
- Creating or deleting pages and rows, and changing columns, views or sharing need the connection.
- A badge shows when the app is offline, how many changes are waiting, and the changes the server refused (for example a row deleted meanwhile).
- Signing out removes everything kept on the device for that account.
#Notifications
Reminders set on dates in pages ("@remind tomorrow 9am") show as notifications. While Nootion is open, the app shows
them itself. To receive them with the app closed, open Reminders in the sidebar on each device and choose Get
notifications on this device. This uses Web Push, which also needs HTTPS; on iPhone and iPad, Nootion must first
be added to the home screen (iOS 16.4 or later). The server makes its push keys on first use and keeps them in
/data/vapid.json (part of the backup): if that file is lost, each device has to turn notifications on again.
The server must be able to reach the browsers' push services (Google, Mozilla, Apple) over HTTPS.
#Importing from files
Markdown, HTML, Word (.docx), text and CSV files, or a .zip holding them (a folder of notes, or an export from another tool), can be imported as pages. Open the import from:
- My account › Import, choosing the space;
- the import button next to a space's name in the sidebar;
- a page's menu in the sidebar (… › Import files): what is imported goes under that page.
Drop the files or the .zip, or choose them, then Import. The import runs on the server with its progress: you can leave the page, it carries on.
How files become pages:
- Each file is a page, each folder a page with its subpages. A
Page.mdbeside aPage/folder, orFolder/Folder.md, is the page of that folder. - A CSV becomes a database (comma, semicolon or tab separated); pages found beside it become the content of its rows.
- Images and attached files are copied into the pages that use them. Relative links and
[[wiki links]]between the files become links between the pages. - Markdown keeps its front matter (title, icon, tags), callouts (
> [!note]), toggles, underlines, highlights (==text==) and the language of code blocks;%%comments%%are left out. A space or page exported from Nootion as Markdown reads back as it was. - HTML and Word keep headings, lists, tables, images, links, bold and italic; formatting the editor doesn't have is left out.
The report at the end counts the pages, databases, rows, files and links made, and lists what was imported differently (embedded content kept as a link, forms or navigation menus left out, files too large…): open a line to see the files concerned. Undo the import moves everything it made to the trash, from where it can still be restored.
Limits: IMPORT_MAX_MB (500 MB by default) for the files sent at once; once uncompressed, archives may hold up to
four times as much. Paths leaving the archive are refused. Views, comments and history of other tools are not
imported. Behind a reverse proxy, raise its body size limit to IMPORT_MAX_MB (see the Nginx example above).
#Importing from other tools through their API
My account › Import can also copy a whole workspace of another tool into a Nootion space (the personal space or a shared space you can edit), through that tool's API. The import runs on the server, so the server needs internet access to the tool's API and to its file storage.
- In the other tool, open its settings for connections or integrations and create an internal integration. In its capabilities, allow reading content and reading user information with email addresses.
- On each top-level page to import, add the integration from the page's connections menu: its subpages and databases follow.
- Copy the integration's secret, paste it on the import screen and start the import. It runs on the server: the screen can be closed meanwhile.
What is imported:
- the page tree, emoji icons and page content: text formatting, headings, lists, to-dos, quotes, callouts, code, tables, dividers, images and files (copied to Nootion), bookmarks, mentions and links between pages;
- databases (inline or full page) with their columns, select and status options, number formats, rows and the content
of rows, people (matched to Nootion accounts by email), two-way relations, rollups and formulas, translated to
Nootion's formula language (lists,
let,map,filter… andcurrent.prop()included); - image icons (uploaded, from the tool's gallery, custom emojis), copied as custom icons.
What is not, or differently:
- The API doesn't give the views: each database gets a table view.
- Formulas using
link()oremail(), which Nootion's formulas don't have, keep their values in a text column. - Comments and page history are left out. Toggles, columns, callouts and covers are kept.
- The API doesn't say whether a page was private or shared with a team: everything goes into the space chosen for the import. Pages that were private can then be moved to your personal space (drag them onto it in the sidebar, or Move to…); importing again keeps updating them there.
The report at the end lists these cases. Importing again uses the saved secret: pages and rows changed in the other tool since the last import are updated (their content is replaced, edits made in Nootion included), the others are left as they are, and nothing is duplicated. An option imports the unchanged pages again too, so that pages imported by an older version get what the import does better now. Forget the secret removes it from the server; what was imported stays.
The API allows about three requests per second, so a large workspace takes a few minutes.