Skip to content

Configuration

This guide is the reference for whoever runs the server. Each setting is an option on the command line or an environment variable. With Docker, use the variables: a variable the compose file doesn’t list yet goes in the environment list of its eidos service. Run docker compose up -d again after a change.

Option Environment variable What it does
--data <folder> EIDOS_DATA The folder the server keeps everything in, made if it doesn’t exist. Required, unless the records are in PostgreSQL and the assets elsewhere. /data in the Docker image.
--owner <email> EIDOS_OWNER The account that runs the server and holds its licence. Required at the first start; given later, it changes the owner.
--port <n>, -p <n> EIDOS_PORT The port to listen on, 6280 by default. The server listens on every network interface.
--url <address> EIDOS_URL The address people reach the server at, such as https://eidos.example.com. Behind a proxy, the proxy’s address. http://127.0.0.1:<port> by default.
--print-codes EIDOS_PRINT_CODES=1 Print each sign-in code and invite in the server’s output instead of mailing them, for a trial. Can’t be combined with --smtp.
--smtp <address> EIDOS_SMTP_URL The SMTP relay that sends the server’s mail. Mail →
--mail-from <address> EIDOS_MAIL_FROM Who the mail comes from, such as Eidos MD <[email protected]>. Required with --smtp.
--no-email-codes EIDOS_EMAIL_CODES=off Turn off email codes and passwords, so people sign in only with Microsoft. Microsoft →
--web-origin <origin> Trust another origin a browser signs in from, such as an account site you host. Repeat for several. Most servers don’t need it.
--trusted-proxy <address> EIDOS_TRUSTED_PROXIES A proxy on another machine, as an address or a range such as 10.0.0.0/24. Repeat for several; the variable takes them separated by spaces. Behind a proxy →
--share-site <folder> EIDOS_SHARE_SITE The guest site’s built files, which share links and public forms need. Already set in the Docker image. Share links →
--views <folder> EIDOS_MCP_VIEWS The MCP’s built views, which let an MCP host such as Claude open a page or the Backlog beside the chat. Without them the agent’s tools answer as text. Not in the Docker image. Agents →
--licence-file <file> EIDOS_LICENCE The server’s licence key. It can also be saved on This server in the app. Licences →
--database <address> EIDOS_DATABASE_URL Keep the records in PostgreSQL: postgres://user:password@host/database. Storage →
--assets <where> EIDOS_ASSETS_URL Keep asset files in a folder, s3://bucket[/prefix], or azure://account/container[/prefix]. Storage →
EIDOS_SERVICE_SECRET The secret sessions are signed with. The secret →
EIDOS_MICROSOFT_CLIENT_ID, EIDOS_MICROSOFT_CLIENT_SECRET, EIDOS_MICROSOFT_TENANT_ID Offer Continue with Microsoft to one company’s directory. Microsoft →

An option on the command line wins over its environment variable.

Sessions are signed with a secret. Set it in EIDOS_SERVICE_SECRET, or leave it unset: the server then makes one at its first start and keeps it in the secret file in the data folder, readable only by the user it runs as.

Keep it. A server started with a different secret signs every device out, and each app says Sync paused until its person signs in again.

Sign-in codes and invites go by email through an SMTP relay you choose, never through Eidos:

Terminal window
EIDOS_SMTP_URL=smtp://user:[email protected]:587
EIDOS_MAIL_FROM=Eidos MD <[email protected]>
  • smtp:// upgrades to TLS when the relay offers it, usually on port 587. Use smtps:// for port 465.
  • Percent-encode any @, /, or : in the user or password, so p@ss is written p%40ss.
  • Set up your sending domain’s SPF and DKIM with your provider, or the mail may land in spam.

As it starts, the server shows the relay’s host (mail: SMTP at smtp.example.com), never its password. If the relay doesn’t answer or refuses the login, the server warns and keeps running: people already signed in go on working, and new codes and invites wait until the relay answers.

People can sign in with their work account from your Microsoft Entra directory, free on every server. Their account is made the first time they sign in; an address already on the server is the same account.

  1. In the Microsoft Entra admin center, open App registrations and choose New registration.
  2. Name it, and under Supported account types choose Accounts in this organizational directory only.
  3. Under Redirect URI, choose Web and enter <url>/api/auth/callback/microsoft, such as https://eidos.example.com/api/auth/callback/microsoft, then register it.
  4. From Overview, copy the Application (client) ID and the Directory (tenant) ID.
  5. Under Certificates & secrets, make a New client secret and copy its Value, which is shown once.

Set these and restart the server. It needs no API permissions beyond the sign-in itself.

Terminal window
EIDOS_MICROSOFT_CLIENT_ID=…
EIDOS_MICROSOFT_CLIENT_SECRET=…
EIDOS_MICROSOFT_TENANT_ID=…

Set EIDOS_EMAIL_CODES=off so only your directory’s people can sign in or make an account. The sign-in dialog then shows Microsoft alone, and the mail settings can be left out. Without mail, invites go by link: an invite to an email address is refused. Use the email your directory reports for EIDOS_OWNER, or the owner won’t see This server.

  • Give access to projects. Each project still invites its people. Signing in makes the account, not the membership.
  • Remove people who leave. Disabling someone in Entra stops new sign-ins, but a device already signed in stays signed in until its session ends, and they still count as an editor. Remove them from their projects too.

Continue with Apple and Continue with Google appear once all of their keys are in the server’s environment. An address used with Apple or Google and by email is one account.

Google. Make a web client in Google Cloud whose redirect URI is <url>/api/auth/callback/google, then set EIDOS_GOOGLE_CLIENT_ID and EIDOS_GOOGLE_CLIENT_SECRET.

Apple. Make a Services ID whose return URL is <url>/api/auth/callback/apple (Apple takes only an HTTPS address), then set:

  • EIDOS_APPLE_CLIENT_ID: the Services ID
  • EIDOS_APPLE_TEAM_ID
  • EIDOS_APPLE_KEY_ID
  • EIDOS_APPLE_PRIVATE_KEY: the text of the Sign in with Apple key’s .p8 file

The server signs Apple’s client secret from the key itself, so it never needs renewing.

The server limits what one visitor can do: sign-in attempts, opening a share link, and sending a form. Behind a proxy it tells visitors apart by X-Forwarded-For, and it believes that header only from a proxy it trusts.

A proxy on the same machine is trusted on its own, as in the Caddy and nginx examples. The Docker setup names its Caddy already. For a proxy on another machine, name it with --trusted-proxy 10.0.0.5 (or EIDOS_TRUSTED_PROXIES). Until you do, the server prints a warning naming the proxy’s address, and everyone behind it shares one visitor’s limits.

Both are served by the guest site. The Docker image includes it. From the source, build it once and name it with --share-site, and build it again at each upgrade:

Terminal window
pnpm install --frozen-lockfile --filter '@eidosmd/web...'
pnpm --filter '@eidosmd/server...' build
pnpm --filter @eidosmd/web build:share
node service/dist/src/serve.js … --share-site web/dist/share

Each has its own switch on This server, off until you turn it on. Turning one off stops every link at once.

A public form lets anyone who has its link write to your server. A self-hosted server has no bot check, only a hidden field and a limit per visitor and per form, so keep a form’s link where you want people to find it.

The Eidos API is at <url>/api, and the MCP endpoint at <url>/mcp, with your server’s address in place of online.eidosmd.com. Each person makes their tokens in the desktop app, under Settings › Account › API tokens.

An agent connects with a token. Sign-in by OAuth is not available on a self-hosted server:

Terminal window
claude mcp add --transport http eidos https://eidos.example.com/mcp --header "Authorization: Bearer $EIDOS_TOKEN"

For an MCP host such as Claude to open a page or the Backlog beside the chat, build the views from the source (pnpm --filter @eidosmd/web build:views) and name web/dist/views with --views.

By default the server keeps everything in its data folder, which is all a server on one machine needs. A company’s server can keep its two kinds of data in your own infrastructure, each chosen on its own:

What Where How
Records: accounts and sessions, projects with their members and invites, each document’s history, and the licence’s state The data folder, in SQLite and files the default
PostgreSQL --database postgres://user:password@host/database
Asset files: images, PDFs, and other files The data folder, under blobs/ the default
Any folder, such as a network share or Azure Files --assets /srv/eidos-assets
An S3-compatible bucket: Amazon S3, Cloudflare R2, MinIO --assets s3://bucket[/prefix]
An Azure Blob Storage container --assets azure://account/container[/prefix]

This server, in the app, shows where each is kept, such as SQLite in the data folder or S3 bucket eidos-assets.

Give the server a database of its own. It makes its tables there at its first start.

The server reads these from its environment:

  • AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY: keys that can read, write, delete, and list objects in the bucket.
  • AWS_REGION: us-east-1 unless set.
  • EIDOS_S3_ENDPOINT: for a store other than Amazon’s, such as https://<account>.r2.cloudflarestorage.com.

Set EIDOS_AZURE_SAS to a shared access signature for the container (or the account) with read, write, delete, and list. Make one in the Azure portal under the storage account’s Shared access signature, or with az storage container generate-sas. Give it a long expiry: the server can’t read or write its assets after it expires.

How long a replaced or removed file is kept

Section titled “How long a replaced or removed file is kept”

A file replaced or removed from a project is kept for 30 days, then removed from the store within two days, unless a project still holds the same file. Keys or a signature that can’t list keep every file and log replaced and removed asset files are being kept for now, so give them list. The server only ever removes what it wrote, so a bucket or container may hold other things too.

As it starts, the server writes a small file to each store and takes it out again. A database it can’t reach, or keys that can’t write, stop it there with a message naming the store and the reason, never a password or a key.

With the records in PostgreSQL, the assets in a bucket or container, and the secret in EIDOS_SERVICE_SECRET, the server keeps nothing on its own disk, and --data can be left out. A new machine started with the same database, assets, and secret is the same server: its owner, its id, its licence, and every account and project.

accounts.sqlite The accounts and their sessions.
projects/ One folder per project: its live documents, its history, its members, and its invites.
blobs/ The asset files, unless --assets names another place.
secret The session secret, when it is not set in the environment. Readable only by the user the server runs as.
server.json The server’s owner, the id it made for itself, its licence key, and the last answer to its licence check. Readable only by the user the server runs as.