Orthanc configuration files and advanced settings

Orthanc configuration files control storage, authentication, DICOM networking and plugins. This page explains how to organize them so one build runs repeatably across test, staging and production.

On this page

How Orthanc configuration files work and when teams need to organize them

Teams need to organize Orthanc configuration once a server that was set up by hand in a single JSON file must be rebuilt identically in a test environment, a staging archive and production. The configuration file is the single place where Orthanc reads its HTTP and DICOM ports, authentication, storage locations, plugin loading and Lua or Python scripts, so any change made by editing it on one server is a change that the other environments do not have. For a regulated imaging archive holding patient studies, that drift is a governance problem as well as an operational one: auditors and security reviewers will ask which settings were in force on a given date and who approved them, and a hand-edited file rarely answers that question.

The core configuration is a JSON document, and the Orthanc Book documents the main options and the advanced settings for each release. Generating a default file gives a known starting point that a team can diff against its own copy when it upgrades. The exact key names and defaults change between versions, so the reader should confirm every key against the Orthanc Book for the version they run, and not against examples copied from older forums or blog posts. Orthanc 1.13.0 was released on 2026-08-15, and the core is licensed GPLv3 or later, so organizing configuration this way has no effect on licensing. The next step is to decide which settings belong in the shared file, which belong to a single environment, and which are secrets that should never be written into any file.

Before designing the layout, list what differs between environments: hostnames, DICOM application entity titles, storage paths, database endpoints, whether remote access is enabled, and which plugins are loaded. Then decide how those differences will be expressed, whether through separate files, environment-specific overrides or variables, and who signs off on each change. A team that can answer these questions in writing will find the later sections on environment variables, Docker secrets and multiple configuration paths much easier to apply, because each one solves a specific part of the same problem.

Configuration options and when each approach fits

This table compares five ways to organize Orthanc settings and one way to handle credentials, with the fit, benefit and main risk of each. Read it to pick the layout your team can review and repeat, then confirm the exact load order and path syntax for your Orthanc version in the Orthanc Book before you rely on it.

ApproachWhen it fitsWhat it makes easierWhat it risks
Single hand-edited main fileOne small server maintained by one person with few changes over timeEverything is in one place and easy to readDrift between servers and changes nobody reviews; passwords often end up in the file
Main file plus advanced fileTeams that want basic settings separated from less common tuning optionsRoutine changes stay short and advanced tuning is kept apartTwo files can disagree, and it is easy to forget which one holds a given key
Multiple configuration paths loaded in orderShared baseline settings used by several Orthanc instances with small local differencesOne baseline reused everywhere with only local overrides in each deploymentLater files silently override earlier ones, so the effective value must be confirmed per version
Per-environment override filesSeparate development, test and production systems that must differ in known waysEnvironment differences are explicit and reviewable in version controlOverrides can grow until no one knows the effective production configuration
Environment variables or Docker secrets for credentialsContainerized deployments where passwords and tokens must stay out of filesCredentials are injected at runtime and can be rotated without editing filesValues can leak through process listings, logs or unmanaged compose files if not handled carefully

How to set up a repeatable Orthanc configuration

This sequence turns Orthanc's configuration into a base file, per-environment overrides, externally supplied secrets and version-controlled files, so the same build behaves predictably across development, test and production. Each step ends with a check the team can repeat before a change reaches a clinical environment.

  1. Generate a default configuration from the installed build

    Start from the build you intend to run, not from an old file copied from another server. Run the Orthanc binary with its option for generating a sample configuration so the defaults match that exact version, then save the output as the base file in your repository. Keep the file in a clearly named location that your service definition points to. Done means the base file was produced by the same binary that will run in each environment, and you can name that version in the commit message. Confirm the generation option for your package or container image in the Orthanc Book before relying on it.

  2. Move environment-specific values out of the base file

    Review the base file and identify values that change between environments: hostnames, storage paths, database connection details, DICOM AE titles, peer addresses and port numbers. Replace them with neutral defaults in the base file and record the real values in separate override files or environment variables. Leave security-sensitive switches at their safe defaults in the base file, such as remote access, the script execution route and the export route, which the Orthanc security FAQ recommends keeping disabled unless you have a specific reason. Done means the base file contains no site-specific addresses or identifiers, and a diff against the generated defaults shows only deliberate changes.

  3. Define an override file for each environment

    Create one override file per environment, such as development, test and production, and keep each one limited to the settings that differ from the base. Use the same key names across environments so a reviewer can compare them side by side. Plugin lists, database back ends and storage plugins should be declared in the override that matches the platform, so a development server does not silently load a production database plugin. Load order and precedence should follow the Orthanc Book's documentation on multiple configuration paths, which you should confirm for the version you run. Done means each environment starts from the same base with only its own overrides applied, and a dry comparison of the effective keys matches what the design calls for.

  4. Keep credentials out of configuration files

    Move passwords, API tokens and database secrets out of every file in the repository. Reference them through the mechanism your platform provides, such as environment variables populated by your orchestrator, a container secret mount or a secrets manager that injects values at start. Set the credentials for registered users and database accounts from these sources, and make sure the storage path for any local secret material has restrictive file permissions. Enable authentication with defined users before any remote access is turned on, as the Orthanc security FAQ advises. Done means a secret scan of the repository finds no passwords or tokens, and the server still authenticates correctly when started with the injected values.

  5. Version the configuration in source control

    Commit the base file, override files and deployment definitions to a repository that your change process already uses, with the Orthanc version recorded alongside them. Require review for any change to security settings, plugin lists and storage locations. Tag each release of the configuration so you can roll back to a known combination of binary and settings. Document which files must never be committed, such as local secret mounts, and enforce that with ignore rules. Done means you can check out a tagged configuration and reproduce the exact effective settings for a named environment.

  6. Validate by starting the server and checking the system endpoint

    Start Orthanc with the configuration for one environment and confirm it reaches a running state without errors. Query the REST system endpoint to confirm the reported version, the loaded plugins and the database or storage back end match what the design specifies. Then review the startup logs for warnings about missing paths, failed plugin loads or unexpected defaults. Repeat the check for each environment after any change. Done means the system endpoint reports the expected version and plugins, the logs contain no unresolved errors, and the results are recorded with the commit that was tested. Confirm the exact endpoint path and log location for your installation method in the Orthanc Book.

Keeping secrets out of files and locking down the configuration

Orthanc reads its settings from configuration files and environment variables, so the same file that sets up storage and DICOM ports can also expose passwords, open remote access or enable dangerous routes. The cards below cover the risks that matter most, each paired with a control and a check you can repeat on every environment.

Plain-text passwords and registered users

Database passwords, storage keys and entries in RegisteredUsers often end up written directly into orthanc.json. Anyone who can read that file, back it up or copy it into a ticket gets those credentials. Move secrets into environment variables or container secrets, keep only references in the file, and check the rendered configuration for literal passwords before it is deployed or committed to version control.

Security FAQ

Remote access without authentication

By default Orthanc only accepts HTTP connections from localhost. Setting RemoteAccessAllowed to true opens the REST API to the network, and the Security FAQ says AuthenticationEnabled should then be true with users defined in RegisteredUsers. Check that both keys are set together in every environment, and test from an unauthenticated client that the API returns an authentication error instead of data.

Script and export routes left enabled

The Security FAQ warns that /tools/execute-script can let a malicious user run any system command, and that the export route can overwrite files. Neither is needed for routine archive operations, so both should stay disabled. Confirm this with a request to each route from an authorized client and keep the result in your change record, because a configuration copied from a lab or sample setup may have them enabled.

Security FAQ

Internet exposure without HTTPS or a proxy

Orthanc's own HTTP listener is not designed to face the Internet directly. The Security FAQ recommends HTTPS and a reverse proxy for any Internet exposure. Terminate TLS at the proxy, allow only the proxy's address to reach the Orthanc HTTP port, and confirm that a direct connection to that port from outside the network fails. Upload size limits and path rules belong in the proxy configuration, so review them alongside the Orthanc settings.

Readable configuration files on shared hosts

Configuration files are often readable by every local account on a Linux or Windows server, and they can be copied by backup jobs or monitoring agents. Restrict read access to the service account that runs Orthanc, store the files outside shared directories, and check file permissions after each package upgrade or reinstall, since package defaults can differ from your hardened settings.

Drift between environments

A security setting fixed in production can be missing from the staging or test copy, and a development setting such as an open API can be promoted by accident. Keep one base file under version control, store per-environment overrides separately, and compare the effective configuration of each environment against an agreed baseline before every release. Record who approved each change to a security-relevant key.

Questions teams ask before organizing Orthanc configuration

Can our own team organize Orthanc configuration without an outside partner?

Yes, a capable in-house team can do this with the Orthanc Book and a version-pinned test environment. Start by generating the default configuration for the exact Orthanc version you run, then move every change into files or environment variables that live in source control. Confirm the behavior of each setting in a test system before it reaches production. The work is mostly disciplined engineering rather than specialized knowledge, but it does require someone who reads release notes carefully, because settings can change between versions. Teams without spare engineering time or without a test system tend to find the first upgrade is where gaps show.

What drives the effort of organizing Orthanc configuration?

The main drivers are the number of environments, the plugins you enable, the authentication model, and whether storage is local or in the cloud. Each environment (development, test, production, disaster recovery) needs its own overrides, so more environments mean more files to keep consistent. Each enabled plugin adds settings, and database or object storage plugins add connection details and secrets. Authentication choices, such as local registered users or an external authorization service, change how access is tested. Local storage keeps the configuration surface smaller than cloud object storage, which adds endpoints, credentials and encryption choices. Ask any provider to break its quote down along these four drivers.

What does our team need to provide for this work?

You need a named owner who makes decisions about settings and approves changes, a test system that matches production closely enough to catch errors, and access to your source control and secret management tools. The owner should be someone who will still be responsible after the work ends, because configuration drifts when no one holds it. The test system should run the same Orthanc version, plugins and database engine as production. Source control holds the configuration files and environment overrides, and your secret management service should hold passwords and tokens that Orthanc reads at start-up, so they never appear in files committed to the repository.

What happens to our configuration during an Orthanc upgrade?

An upgrade can change default values, add or remove settings, and require matching versions of plugins. Orthanc 1.13.0 was released on 2026-08-15 with a rewrite of storage-area access and DICOM parsing and transcoding, so test your configuration against that version before moving production. Before upgrading, regenerate the default configuration for the new version and compare it with your current files. Review the release notes in the NEWS file, check that database and object storage plugins match the core version, and run your test suite against the new build. Keep the previous configuration under version control so you can roll back quickly if needed.

Where should secrets such as database passwords go in Orthanc?

Keep secrets out of configuration files and out of source control. The Orthanc configuration can read values from environment variables, and in containers you can supply them through Docker secrets or an orchestrator's secret store. Your secret management service should inject these values at deployment time, and the files in the repository should contain only placeholders or variable names. Restrict who can read the injected values, rotate them on a schedule your security team sets, and check that logs and generated defaults do not echo credentials. Confirm the exact variable naming rules and secret-loading behavior for your Orthanc version in the Orthanc Book before you design the pipeline.

Does remote access need extra configuration settings?

Yes. By default Orthanc only accepts HTTP connections from localhost. When RemoteAccessAllowed is enabled, the Orthanc security FAQ says AuthenticationEnabled should be true, with users defined in RegisteredUsers. For Internet exposure, the docs recommend HTTPS and a reverse proxy. Two routes in particular should stay disabled: the /tools/execute-script route can let a malicious user run any system command, and the export route can overwrite files. Include these settings in your environment files so that a test environment and production behave the same way, and verify them with a scripted check after every change.

When is it worth bringing in an outside partner for Orthanc configuration?

An outside partner is worth considering when you lack a test system, when no internal owner has time for upgrades, or when you need configuration built around database, cloud storage or authorization plugins quickly. Orthanc Team SRL, the company behind the project, sells deployment, configuration and development services. It offers pre-paid dedicated support hours valid for 12 months, quoted on request, and there is no paid edition of Orthanc, so any support is a service rather than a license. DeployOpen also plans and implements self-hosted open-source platforms inside your infrastructure and provides fixed-scope engagements with written scope, deliverables and timelines. Ask for a written scope and a breakdown of the cost drivers listed above before you decide.

Is there a license cost for running Orthanc configured this way?

The Orthanc core is licensed GPLv3 or later, and there is no paid edition of Orthanc. The scalability and cloud plugins, such as the PostgreSQL and web viewer plugins, are licensed AGPLv3 or later, so review those terms with your legal team before you distribute or host modified versions. Orthanc copyright is shared among several entities, and UCLouvain contributions since September 1, 2021 cannot be dual licensed. Your recurring cost is therefore mainly the people and infrastructure needed to run the system, plus any support you choose to buy. Confirm the license obligations for each plugin in your deployment against the Orthanc Book licensing FAQ.

How base, override and secret layers combine at startup

The diagram starts with the base configuration file that Orthanc reads first, then shows the environment-specific override file applied on top of it. Environment variables and secret files arrive from outside the configuration tree, inside a trust boundary that keeps passwords out of version control. The running Orthanc process loads the merged result along with its plugins. Check that each setting has one clear owner and that no secret appears in a file that is committed to the repository.

Layers that Orthanc merges at startup, with secrets kept outside the configuration files.

What changes for operations teams once configuration is versioned

Once Orthanc configuration lives in version control, operations teams review configuration the way they review code. Each change to the main configuration file, the advanced file or an environment override becomes a commit with an author, a reviewer and a reason attached. The reviewer should check the effective result, not only the diff: a key that moves from one file to another, or an environment variable that overrides a JSON value, can change behavior without any visible edit in the file under review. Rollback then becomes a revert of a known commit and a redeploy of the matching container or package, which is faster than reconstructing settings from memory. Confirm that your pipeline can deploy a previous revision of the configuration without also pulling a newer Orthanc build.

Versioned configuration also gives auditors and security reviewers evidence that is easier to produce. The history shows who enabled remote access, changed authentication settings or turned on a plugin, and when. Pair that history with the rules for RemoteAccessAllowed, AuthenticationEnabled and RegisteredUsers described in the security FAQ in the Orthanc Book, so that a reviewer can confirm the repository reflects the intended access model. Keep secrets out of the repository entirely, so the history never contains passwords that would need rotation after a review. Handover to a new administrator becomes a reading exercise: the repository, its README and the list of enabled plugins should be enough to explain the running system without a walkthrough from the previous owner.

Test each configuration change against the same Orthanc version and plugin versions that run in production. A setting that loads cleanly on a newer core may behave differently on the version you operate, and plugins must match the core release they were built for. Record the exact version tags in the repository next to the configuration, so a test environment can be built from the same pair. Upgrades of the core, plugins and database server are a separate change with their own steps, and the Orthanc upgrades group on this site covers them in detail. Ask your team to confirm which version pins are stored with the configuration and who approves a change that moves them.

How DeployOpen works on this

DeployOpen plans, builds, documents and supports Orthanc configuration inside your own infrastructure, so the settings files, environment overrides and secret handling can be reviewed by your security and compliance teams. Work is agreed as a fixed scope with written deliverables before any configuration changes begin.

How we scope

  • Inventory every Orthanc instance, its installation method and the settings files it currently loads
  • Agree which environments need separate overrides, such as test, staging and production
  • Define how secrets will be supplied and which settings must stay out of version control
  • Confirm the written scope, deliverables and timeline before configuration work starts

How we build

  • Generate baseline configuration from the Orthanc version you run, then review each setting
  • Disable high-risk routes such as script execution and file export unless a documented need exists
  • Set remote access, authentication and registered users to match your access model
  • Test each environment override and confirm Orthanc starts with the intended settings

How we hand over

  • Deliver a configuration reference that explains each file, override and secret source
  • Provide the version-controlled configuration repository and a documented change procedure
  • Walk your operations team through upgrade steps when settings change between Orthanc releases
  • Record verification results so your compliance team can review the configuration evidence

How we support

  • Review configuration changes when you upgrade Orthanc, its plugins or the container images
  • Retest settings after changes to the reverse proxy, identity provider or network placement
  • Offer ongoing support, upgrades and continuous testing as a retainer after handover
  • Agree support scope and response expectations in writing before the retainer begins

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.