Skip to main content

Configuration

Ignixa uses standard ASP.NET Core configuration with appsettings.json. All settings can be overridden via environment variables using double-underscore notation (e.g., Tenants__Mode).

Request and Bundle Limits​

{
"Kestrel": {
"Limits": {
"MaxRequestBodySize": 30000000
}
},
"Bundle": {
"MaxTransactionEntries": 500
}
}
SettingDefaultDescription
Kestrel:Limits:MaxRequestBodySize30000000Maximum request body size in bytes. A body with an over-limit Content-Length returns a FHIR OperationOutcome with HTTP 413 and issue code too-costly before bundle entries execute. A chunked body is checked while read: transactions return HTTP 413 without committing, while batches can retain earlier entries and finish their HTTP 200 response with a fatal too-costly entry with status 413. It must be a positive integer; null and unlimited request bodies are not supported.
Bundle:MaxTransactionEntries500Maximum entries in one atomic transaction bundle. Batch bundles are not capped.

These settings are request-size and transaction-cardinality guards, not a memory guarantee. The transaction cap changes behavior for clients that previously submitted transactions larger than 500 entries.

Resource Element Order​

{
"Serialization": {
"OrderElementsOnWrite": false
}
}
SettingDefaultDescription
Serialization:OrderElementsOnWritefalseStore resources with their properties in StructureDefinition element order.

By default the server keeps the property order the client sent; properties the server adds that the client omitted (id on create, meta, meta.versionId, meta.lastUpdated) are appended. When enabled, every resource write through the FHIR API (create, update, patch, conditional operations, batch and transaction bundles, GraphQL mutations, X-Provenance) and bulk $import stores the resource in element order. An invalid value fails server startup.

Properties are ordered with resourceType first, then elements in the order the resource's FHIR version defines them. A primitive's extension sibling (_birthDate) follows its value, properties the specification does not define are kept after the defined ones, and embedded resources (contained, Bundle.entry.resource) are ordered by their own resourceType. Array element order never changes.

Reads serve the stored JSON and do not reorder it, so resources written before the setting was enabled keep their original order until they are next updated.

Tenant Configuration (Required)​

Ignixa requires at least two tenant configurations: Tenant 0 (system partition) and Tenant 1+ (your data).

{
"Tenants": {
"Mode": "Isolated",
"Configurations": [
{
"TenantId": 0,
"DisplayName": "System Partition (Reserved)",
"FhirVersion": "4.0",
"IsActive": true,
"IsSystemPartition": true,
"Storage": {
"Type": "SqlServer",
"InheritConnectionStringFromTenant": 1
}
},
{
"TenantId": 1,
"DisplayName": "Production Database",
"FhirVersion": "4.0",
"IsActive": true,
"Storage": {
"Type": "SqlServer",
"ConnectionString": "Server=localhost;Database=FHIR_R4;Integrated Security=true;TrustServerCertificate=true"
}
}
]
}
}

Key Settings​

SettingDescription
ModeIsolated - each tenant has separate data. (Distributed planned but not yet implemented)
TenantIdUnique identifier. 0 is reserved for system operations
FhirVersion3.0 (STU3), 4.0 (R4), 4.3 (R4B), 5.0 (R5), or 6.0 (R6 ballot)
Storage.TypeSqlServer (recommended). SqlEntityFramework is accepted as a legacy alias for the same storage.
Storage.InheritConnectionStringFromTenantInteger source tenant ID (default 1). Used when the system partition has no connection string of its own.

InheritConnectionStringFromTenant is not a boolean. Replace older examples using true with the numeric source tenant ID, normally 1, including environment overrides such as Tenants__Configurations__0__Storage__InheritConnectionStringFromTenant=1. To give the system partition an explicit connection string, configure Storage.ConnectionString rather than setting inheritance to false. SQL-backed package/terminology storage currently requires the system partition and tenant 1 to share the same resolved physical database, regardless of connection-string or server-alias spelling. The shared-database check holds two SQL connections concurrently; do not limit a shared connection pool to Max Pool Size=1.

Hostname-based Tenant Resolution​

Each tenant may declare a Hostnames array to enable resolution by request Host header in addition to numeric /tenant/{id}/ path routing.

Configuration​

{
"Tenants": {
"Configurations": [
{
"TenantId": 1,
"DisplayName": "Production Database",
"Hostnames": ["fhir1.example.org", "fhir1-backup.example.org"],
"Storage": { "Type": "SqlServer", "ConnectionString": "..." }
}
]
}
}

How It Works​

Hostname Semantics:

  • First hostname is the canonical base for that tenant's absolute references. This hostname is used when the server emits absolute URLs (in Location headers, pagination links, Bundle.entry.fullUrl, etc.) and when stored internally.
  • Additional hostnames (if any) are recognized as valid inbound hosts for the same tenant but are not used for outbound references.
  • Hostnames must be bare DNS names (lowercase, no scheme, no port, no path). Example: fhir1.example.org (valid); https://fhir1.example.org:8080/fhir (invalid).
  • Hostnames are unique across all tenants. A duplicate hostname is fatal: the server refuses to serve and the error is enforced when the host-index resolver is first used or during host-index build.

Resolution Precedence:

  1. If the request's Host header matches a configured hostname, that tenant is selected.
  2. If the URL path contains /tenant/{id}/ (numeric), that tenant is selected by ID.
  3. If both Host header and /tenant/{id}/ path are present and resolve to different tenants, the server returns 400 Bad Request.
  4. If the Host header is not recognized and no /tenant/{id}/ is in the path, resolution falls through to single-tenant auto-detect (if only one active tenant) or remains unresolved.

Examples:

Request: GET http://fhir1.example.org/metadata
Result: Selects tenant with Hostnames[0] = "fhir1.example.org"

Request: GET http://fhir1-backup.example.org/Patient/123
Result: Selects same tenant via Hostnames[1] (alternate hostname)

Request: GET http://fhir1.example.org/tenant/2/Patient/123
Result: 400 Bad Request (Host resolves to Tenant 1, path specifies Tenant 2 — conflict)

Request: GET http://localhost/tenant/1/Patient/123
Result: Selects Tenant 1 (by path; Host not recognized)

Request: GET http://unrecognized.example.org/Patient/123
Result: Falls through to auto-detect or single-tenant mode

TLS/Certificate Considerations​

  • Subdomains under one zone (e.g., fhir1.example.org, fhir2.example.org) are covered by a single wildcard certificate (*.example.org). Wildcards match a single DNS level.
  • Apex/vanity domains (different registrable domains like org1.com, org2.com) require separate certificates, each signed for its own domain.
  • For development, self-signed certificates or local DNS overrides (/etc/hosts or Windows hosts file) are common.

Limitations​

Path-based vanity slugs are not yet supported. The following forms are NOT available:

  • /tenant/{slug}/ (path-based slug routing)
  • /{slug}/ (bare slug routing)

Currently, only these forms work:

  • /tenant/{id}/ (numeric ID routing) ✅
  • Host header routing with Hostnames ✅

Path-based slugs (/tenant/{slug}/) are planned for a future release and will require relaxing route constraints, slug indexing, and slug format validation across the API layer. Track progress in the project roadmap.

SQL Server Connection String​

For production SQL Server:

{
"Storage": {
"Type": "SqlServer",
"ConnectionString": "Server=your-server.database.windows.net;Database=FHIR_R4;Authentication=Active Directory Default;TrustServerCertificate=true"
}
}

For local development with Windows Auth:

{
"Storage": {
"Type": "SqlServer",
"ConnectionString": "Server=(local);Database=FHIR_R4;Integrated Security=true;TrustServerCertificate=true"
}
}

SQL Server Schema Deployment​

The SQL Server data layer ships its schema as an embedded dacpac built from the Ignixa.DataLayer.SqlServer.Database SQL Database Project. The SqlServer section controls whether the server is allowed to apply that schema itself.

{
"SqlServer": {
"AutomaticSchemaDeploymentEnabled": false
}
}
SettingDefaultDescription
AutomaticSchemaDeploymentEnabledfalseWhether the app may apply schema changes itself. A deployment opts in rather than out

When AutomaticSchemaDeploymentEnabled is true​

  • Brand-new tenant databases are provisioned from the embedded dacpac and stamped with the current schema version.
  • Tenants behind the current schema version are upgraded — but only when the pending diff classifies as auto-safe.

Both paths run with BlockOnPossibleDataLoss set explicitly, and every upgrade is gated by the deploy-report classifier described below. This setting grants permission to apply a change that has already been judged safe; it never bypasses that judgement.

note

This is not a startup action. The schema check runs on first repository access for a given tenant, inside the per-tenant factory the data layer caches. A tenant that is never addressed is never touched, and a schema failure surfaces as a failure of the first request against that tenant rather than as a failed startup.

When AutomaticSchemaDeploymentEnabled is false (default)​

Both cases throw instead, and the exception names the remedy:

  • An uninitialized tenant database reports that it is not initialized and directs you to publish the dacpac (sqlpackage /Action:Publish) before starting the app, or to enable automatic deployment.
  • A tenant behind the current version reports that it is behind and directs you to the schema-upgrade CLI, or to enable automatic deployment.

A tenant that is already at the current schema version is unaffected either way — the version check returns before the setting is consulted.

The auto-safe gate​

Before applying any upgrade, the server generates a DacFx deploy report for the pending diff and classifies it. Only a diff classified auto-safe is applied automatically. A diff DacFx flags as a data issue is classified unsafe; a report whose shape the classifier cannot read is classified unclassifiable. Both refuse, and both fail closed — an unreadable report is never treated as safe.

Purely additive changes (a new nullable column, a canonicalization-only default rewrite) carry no data-issue marker and classify as auto-safe. Anything DacFx flags — a dropped column, a table rebuild that could lose rows — does not, and requires an operator to review and apply it explicitly with the CLI.

Database creation​

Automatic deployment applies schema; it does not create the database except in Development, where the server creates an empty database if it cannot connect to one. In every other environment the tenant database must already exist before the first request for that tenant arrives.

Environment variable override​

export SqlServer__AutomaticSchemaDeploymentEnabled=true

Terminology Import Timeout​

Terminology packages (CodeSystem, ValueSet, ConceptMap) import through a handful of SQL Server commands that can carry a whole CodeSystem's or ValueSet's worth of rows in one call. The SqlServer section also controls how long those commands are allowed to run before ADO.NET gives up on them.

{
"SqlServer": {
"TerminologyImportCommandTimeoutSeconds": 120
}
}
SettingDefaultDescription
TerminologyImportCommandTimeoutSeconds120SqlCommand.CommandTimeout, in seconds, for the terminology import procedures and the ValueSet compose-resolution reads that can run before them

Omitting this setting still uses Ignixa's 120-second default, not ADO.NET's underlying 30-second SqlCommand default. A command that overruns the configured timeout is classified as a transient SQL failure and retried up to three more times before the package import attempt is marked Failed. That attempt remains eligible for retry on a subsequent startup. A failed transactional replacement does not remove previously installed active terminology; the package records its failure and error separately from the effective status of surviving content. This setting covers:

  • dbo.ImportTermCodeSystem, dbo.ImportTermValueSet and dbo.ImportTermConceptMap — the three procedures that insert a whole CodeSystem, ValueSet or ConceptMap as a table-valued parameter and resolve its hierarchy server-side in one transaction.
  • The reads SqlServerValueSetComposer runs to resolve a ValueSet's compose element before dbo.ImportTermValueSet runs. These can be just as large: an include naming a whole CodeSystem with no concept or filter array reads every concept in that system, and an include naming a previously expanded ValueSet reads every one of its rows.
note

Measured against a local, otherwise-idle SQL Server: importing 100,000 flat concepts took under 2 seconds, a 350,000-concept import (SNOMED CT's rough scale) took under 6 seconds, and re-importing 100,000 concepts (a cascade delete of the previous import plus a full re-insert) took about 3 seconds. Real CodeSystems carry per-concept property and designation payloads that benchmark did not, and a production database adds network latency, a lower-throughput SKU, and lock contention from concurrent terminology activity on top of that baseline — the default of 120 seconds is set well above the measured numbers, not at them. Raise it further for Azure SQL deployments seeing terminology import failures under real package sizes or concurrent load; a genuinely stuck command still fails eventually rather than hanging forever.

Environment variable override​

export SqlServer__TerminologyImportCommandTimeoutSeconds=180

Blob Storage​

Configure blob storage for bulk import/export operations:

{
"BlobStorage": {
"Provider": "Azure",
"ContainerName": "fhirstorage",
"UseManagedIdentity": true,
"StorageAccountUri": "https://youraccount.blob.core.windows.net"
},
"AzureBlobStorage": {
"ConnectionString": "DefaultEndpointsProtocol=https;AccountName=youraccount;AccountKey=...;EndpointSuffix=core.windows.net",
"ContainerName": "fhirstorage",
"UseManagedIdentity": true,
"StorageAccountUri": "https://youraccount.blob.core.windows.net"
}
}

Provider Options​

ProviderUse CaseConfiguration Section
LocalDevelopment - stores in RootDirectory on filesystemLocalFileBlobStorage
AzureProduction - Azure Blob Storage with Managed Identity or connection stringAzureBlobStorage

For local development with filesystem:

{
"BlobStorage": {
"Provider": "Local"
},
"LocalFileBlobStorage": {
"RootDirectory": "fhir-exports"
}
}

For Azurite (Azure Storage emulator):

{
"BlobStorage": {
"Provider": "Azure",
"UseManagedIdentity": false
},
"AzureBlobStorage": {
"ConnectionString": "UseDevelopmentStorage=true",
"ContainerName": "fhirstorage"
}
}

DurableTask (Bulk Operations)​

Bulk import/export uses DurableTask for orchestration. SQL Server backend is recommended:

{
"DurableTask": {
"Provider": "SqlServer",
"SqlServer": {
"TaskHubName": "ignixa"
}
}
}

The SQL Server provider uses the same database as Tenant 0 (system partition). Its orchestration schema is created on startup; this does not enable automatic deployment of the separate FHIR schema.

Alternative Providers​

{
"DurableTask": {
"Provider": "AzureStorage",
"AzureStorage": {
"UseManagedIdentity": true,
"StorageAccountName": "youraccount",
"TaskHubName": "ignixa"
}
}
}

Background Job Metadata​

The job metadata repository is configured separately from the DurableTask orchestration provider:

{
"BackgroundJobs": {
"Repository": "SqlServer"
}
}

SqlServer persists job metadata in tenant 1's shared dbo.BackgroundJobs table. InMemory keeps metadata only for the life of the process and is the default when the setting is absent or empty. Both explicit values are case-insensitive; misspellings fail startup rather than falling back to volatile storage. For persistent bulk-job status across restarts, configure the SQL repository as well as the desired DurableTask provider.

Service Base URI​

Fhir:BaseUri is this deployment's public FHIR service root. Set it in every environment that runs $reindex or $import.

{
"Fhir": {
"BaseUri": "https://fhir.example.org"
}
}

It is used to recognise a reference written as an absolute URL that points back at this server, so it reconciles with the equivalent relative reference. Patient/p1, https://fhir.example.org/Patient/p1 and https://fhir.example.org/tenant/1/Patient/p1 all name the same resource, and all three are stored — and searched — the same way. Both the root and each tenant's /tenant/{id}/ base are recognised, so it does not matter which route form a client used to write or to search.

Two things depend on setting it:

  • Background indexing. $reindex and $import have no HTTP request to derive a base from. With Fhir:BaseUri unset they recognise nothing, so reindexed rows file self-references as external while the rows they replace filed them as internal, and those resources drop out of absolute searches. The server logs a warning at startup when the setting is missing. Recognising the tenant-scoped base also depends on the background activity establishing which tenant it is running for — $import does this via FhirRequestContextFactory.CreateBackgroundContext, restored on exit so it cannot leak to the next job on a pooled thread. $reindex does the same for each range it processes. Any future background path that indexes resources must do the same or it will silently reintroduce this gap even with Fhir:BaseUri set.
  • Host header trust. With Fhir:BaseUri unset, the base is derived from the request's Host header, which a client controls — a forged Host decides whether an inbound reference is stored as internal or external. When it is set, the Host header is ignored for this purpose. Independently, set AllowedHosts to your real hostnames rather than leaving it at *.
note

Only rows written after the setting is in place are affected. References already stored against a self-referencing absolute base keep it until a $reindex.

Authentication​

Configure OIDC authentication with any compliant provider (Entra ID, Okta, etc.):

{
"Authentication": {
"Authority": "https://login.microsoftonline.com/{tenant}/v2.0",
"Audience": "api://your-app-id"
}
}

The server discovers endpoints automatically from /.well-known/openid-configuration.

Authorization​

Enable RBAC-based authorization:

{
"Authorization": {
"Enabled": true,
"RequireAuthentication": true,
"EnforceTenantIsolation": true,
"EnforceCapabilities": true
}
}

Default Roles​

RoleDescription
AdminFull access to all resources
SystemAdminCross-tenant administrative access
ClinicianAccess to clinical resources (Patient, Observation, etc.)
ReadOnlyRead-only access to all resources

SMART on FHIR​

{
"Authorization": {
"SmartOnFhir": {
"EnableSmartConfiguration": true,
"AuthorizeUrl": "https://your-idp.com/authorize",
"TokenUrl": "https://your-idp.com/token"
}
}
}

Experimental Features​

Enable or disable experimental features:

{
"Experimental": {
"Enabled": true,
"Features": {
"Mcp": {
"Enabled": true,
"Transport": "http"
},
"Transform": {
"Enabled": true,
"TimeoutSeconds": 30
},
"Terminology": {
"Enabled": true,
"EnableAutoImport": true
},
"Summary": {
"Enabled": true,
"MaxResources": 1000
},
"GraphQl": {
"Enabled": false
}
}
}
}
FeatureDescription
McpModel Context Protocol for AI integration
TransformFHIR Mapping Language $transform operation
Terminology$expand, $translate, $subsumes operations
SummaryPatient $summary (IPS) operation
GraphQlFHIR $graphql operation. Off by default (see below)

GraphQL is opt-in because of its memory cost: each FHIR version's schema holds about 215 MB of managed heap (measured for R4), and under Server GC the process commits several times that. When GraphQL is enabled, the R4 schema and any versions added under Experimental:Features:GraphQl:WarmupVersions are built at startup; other versions are built on first use. To enable it, set Experimental__Features__GraphQl__Enabled=true.

Instance-level reverse fields (for example Patient.ObservationList and Patient.ObservationConnection) exist only for resource types that have a base-specification reference search parameter able to target the instance's type. Queries that name a field for an unrelated pair, such as Patient.OrganizationList, fail schema validation. The GraphQL schema is shared across tenants, so a tenant package search parameter cannot add a reverse field. If the pair already has a field because of a base parameter, its _reference argument accepts the tenant parameter's code. Otherwise use REST search, for example GET /Organization?my-patient-param=Patient/123.

Bulk Import Tuning​

Configure import performance for high-volume ingestion:

{
"Import": {
"MaxConcurrentFiles": 1,
"ConsumerCount": 1,
"BatchSize": 100,
"ChannelCapacity": 1000
}
}
SettingDefaultDescription
MaxConcurrentFiles1Files processed in parallel (default 1, increase for higher throughput)
ConsumerCount1Writer threads per file (default 1, increase to 4-8 for parallel processing)
BatchSize100Resources per database write
ChannelCapacity1000Backpressure buffer size
note

Higher concurrency values improve throughput but use more system resources and threads. Start with defaults and increase conservatively based on monitoring. Each concurrent file spawn 1 producer + ConsumerCount worker threads, so total threads = MaxConcurrentFiles * (1 + ConsumerCount).

Conformance Freshness and Reindexing​

Servers that share a conformance event store poll it for search-parameter changes. These settings control how stale a server may become before it stops answering searches, and how the $reindex job behaves. The defaults suit most deployments, MaxStaleness and BarrierDelay derive from Conformance:SyncIntervalSeconds, and TransitionSafetyMargin from the longest default SQL command budget.

{
"Conformance": {
"SyncIntervalSeconds": 30,
"MaxStaleness": "00:01:30",
"TransitionGrace": "00:04:00",
"TransitionSafetyMargin": "00:02:30"
},
"Reindex": {
"Enabled": true,
"AutoStart": true,
"BarrierDelay": "00:01:30"
}
}
KeyDefaultMeaning
Conformance:SyncIntervalSeconds30How often each server polls for conformance changes.
Conformance:MaxStaleness3 × SyncIntervalSecondsA server whose last successful sync started longer ago than this returns 503 for requests that evaluate search parameters. The default tolerates one missed poll. See search parameters.
Conformance:TransitionGraceMaxStaleness + TransitionSafetyMarginDelay between hiding a replaced or removed parameter and changing how it is extracted.
Conformance:TransitionSafetyMargin00:02:30Time added above MaxStaleness before a transition may commit. A search admitted by the staleness check must finish within this margin less ClockSkewAllowance, or it returns a retryable 503; the default covers the longest default SQL command budget. Must exceed ClockSkewAllowance.
Conformance:ClockSkewAllowance00:00:15The part of TransitionSafetyMargin reserved for clock skew between the instance that admits a search and the one that commits a transition.
Reindex:EnabledtrueEnables $reindex jobs. When false, no job starts, new parameters stay Pending, the capability statement omits $reindex, and its routes return 404.
Reindex:AutoStarttrueStart a reindex job automatically after a package activation creates parameters that need one, and start a follow-up when an activation arrives while a job runs. A failed job is not retried automatically; the next activation or a POST $reindex starts the next job. When false, start jobs with POST $reindex.
Reindex:BarrierDelay3 × SyncIntervalSecondsWait after a change before a job fences out writers with older definitions, giving other servers time to catch up.
Reindex:DefaultMaximumNumberOfResourcesPerQuery10000Default size of one range of work.
Reindex:DefaultMaximumNumberOfResourcesPerWrite100Default batch size for index writes. Large batches hold row locks until they commit and can escalate to partition locks that block normal writes of the same resource type; raise it only after measuring.
Reindex:DefaultMaximumConcurrency4Default concurrent ranges per tenant.
Reindex:StaleJobTimeout00:30:00A running job with no heartbeat for this long (plus BarrierDelay while it waits out the barrier delay) is flagged in its status; the periodic conformance sync logs it as an error (event ReindexStaleJob) and counts it in the reindex.jobs.stale metric. A tenant that waits longer than this for in-flight writes to finish, or for the workers' search parameter definitions to catch up with the job's target, also fails.
Reindex:DrainWarningAfter00:05:00A job waiting for in-flight writes longer than this logs the oldest incomplete transaction.
Reindex:OrphanGrace00:02:00How long a job with no live orchestration is left alone before it is recovered and its parameters returned to Pending.
Reindex:ContinueAsNewThreshold2000Activities scheduled before a job restarts its orchestration to keep its history bounded. Leave it unless support asks.

The server fails to start if these do not hold, so a misconfiguration is caught before it can serve wrong results:

  • SyncIntervalSeconds, MaxStaleness, TransitionGrace and TransitionSafetyMargin must be positive.
  • TransitionGrace must be at least MaxStaleness + TransitionSafetyMargin.
  • BarrierDelay must be at least MaxStaleness.
  • Reindex:DefaultMaximumNumberOfResourcesPerQuery and ...PerWrite must be 1–10000, and Reindex:DefaultMaximumConcurrency must be 1–16, the same ranges the $reindex request parameters accept.
  • Reindex:OrphanGrace, StaleJobTimeout and DrainWarningAfter must be positive, and ContinueAsNewThreshold at least 1.
  • TransactionWatcher:Enabled must be true when Reindex:Enabled is true. A reindex job waits for in-flight writes to complete, and the transaction watcher is what completes a stalled one.
note

Search availability depends on reaching the shared conformance store. If an instance cannot sync for longer than MaxStaleness, its searches return 503 with Retry-After until it syncs again. Raise MaxStaleness (and TransitionGrace with it) if your deployment has slow or flaky links to the conformance database.

Transaction Watcher​

Automatically commits stalled transactions:

{
"TransactionWatcher": {
"Enabled": true,
"ScanInterval": "00:01:00",
"StallThreshold": "00:05:00"
}
}

Logging​

{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning",
"Microsoft.EntityFrameworkCore.Database.Command": "Warning",
"Ignixa": "Debug"
}
}
}

For troubleshooting SQL queries, set EF Core command logging to Debug:

{
"Logging": {
"LogLevel": {
"Microsoft.EntityFrameworkCore.Database.Command": "Debug"
}
}
}

Environment Variables​

Override any setting with environment variables:

# Tenant connection string
export Tenants__Configurations__1__Storage__ConnectionString="Server=..."

# Public FHIR service root (see "Service Base URI")
export Fhir__BaseUri="https://fhir.example.org"

# Enable authorization
export Authorization__Enabled=true
export Authorization__RequireAuthentication=true

# Blob storage
export BlobStorage__Provider=Azure
export BlobStorage__UseManagedIdentity=true
export BlobStorage__StorageAccountUri="https://account.blob.core.windows.net"

# DurableTask
export DurableTask__Provider=SqlServer

# Automatic SQL Server schema deployment (see "SQL Server Schema Deployment")
export SqlServer__AutomaticSchemaDeploymentEnabled=false

Docker/Container Deployment​

When running in containers, use environment variables:

docker run -p 8080:8080 \
-e Tenants__Configurations__1__Storage__ConnectionString="Server=host.docker.internal;Database=FHIR_R4;..." \
-e BlobStorage__Provider=Azure \
-e BlobStorage__ConnectionString="DefaultEndpointsProtocol=https;..." \
-e ASPNETCORE_FORWARDEDHEADERS_ENABLED=true \
ghcr.io/brendankowitz/ignixa-fhir:release
tip

Set ASPNETCORE_FORWARDEDHEADERS_ENABLED=true when behind a reverse proxy (App Service, AKS ingress) to correctly handle X-Forwarded-* headers.

Complete Production Example​

{
"Logging": {
"LogLevel": {
"Default": "Warning",
"Ignixa": "Information"
}
},
"Authentication": {
"Authority": "https://login.microsoftonline.com/{tenant}/v2.0",
"Audience": "api://ignixa-fhir"
},
"Authorization": {
"Enabled": true,
"RequireAuthentication": true,
"EnforceTenantIsolation": true
},
"BlobStorage": {
"Provider": "Azure",
"UseManagedIdentity": true,
"StorageAccountUri": "https://youraccount.blob.core.windows.net",
"ContainerName": "fhirstorage"
},
"DurableTask": {
"Provider": "SqlServer",
"SqlServer": {
"TaskHubName": "ignixa"
}
},
"SqlServer": {
"AutomaticSchemaDeploymentEnabled": false
},
"Tenants": {
"Mode": "Isolated",
"Configurations": [
{
"TenantId": 0,
"DisplayName": "System Partition",
"FhirVersion": "4.0",
"IsActive": true,
"IsSystemPartition": true,
"Storage": {
"Type": "SqlServer",
"InheritConnectionStringFromTenant": 1
}
},
{
"TenantId": 1,
"DisplayName": "Production",
"FhirVersion": "4.0",
"IsActive": true,
"Storage": {
"Type": "SqlServer",
"ConnectionString": "Server=sql.example.com;Database=FHIR_R4;Authentication=Active Directory Default"
}
}
]
},
"Experimental": {
"Enabled": false
}
}

Next Steps​