Skip to content

Settings

Self-Hosted Only

The API carries its defaults in appsettings.json, beside the program in the image. Give an instance its own settings as environment variables, or on the command line; either overrides the file. In an environment variable, write __ for :, as in Auth__SigningKey. Keep passwords, keys and connection strings in your platform’s secret store, never in a file. appsettings.example.json, beside the API’s source, lists every setting with its default.

The API reads its settings once, at start. A change takes effect when the API next starts.

Setting What It Is
ConnectionStrings:Registry The PostgreSQL connection string
Database:ScriptsPath The folder of database scripts, which the API applies at start
Auth:SigningKey The secret that signs access tokens, at least 32 characters
ServiceAccounts:KeyHashSecret The secret service accounts’ API keys are kept under, at least 32 characters, kept apart from the database: each key is stored only as an HMAC made with it. Without it no API key can be made or used. A new one ends every key made under the old
Worker:BaseUrl, Worker:Key Where the engine worker is, and the key the API sends it
Cache:Redis The cache’s connection string. Without it, locks and revoked tokens are kept in one API’s memory, which is fine for one instance only
Cache:Prefix What begins every key and live-channel message of this instance in the cache, forge unless set. Every instance of one deployment has the same; a second deployment that shares the cache server takes its own, so that neither sees the other’s locks or revoked tokens nor hears its messages. Letters, digits, dots, dashes and underscores
Assistant:KeysPath The folder of keys. Without it no organization can store a credential: no own AI key, no single sign-on secret, no authenticator app
Proxy:KnownNetworks or Proxy:KnownProxies, Proxy:ForwardLimit Which proxies in front of the API are believed about the caller’s address. Without them every caller looks like the proxy, and they share one sign-in limit
Platform:Mode self-hosted for an instance you run: your own IT are its operators, and the workspace’s screens say so. managed is for DigitalPrez’s own instances
Platform:Host The platform console’s own host name, such as ops.example.com. Operators sign in there and nowhere else, and nothing of the workspace answers there. Empty: no console
Platform:WorkspaceAddress The workspace’s own address, such as https://forge.example.com, where an operator with a support code is sent to look
Web:RenderHost, Web:RenderSecret A second host name for the pages the engine builds, such as render.example.com, with its own DNS record and a certificate that covers it, and the secret of at least 32 characters its short-lived tickets are signed with. A page there holds no session, so the note markers on the diagram and picking an element for a note work. Without them everything else works, and the markers fall back to a list
Encryption:Kek, Encryption:KmsKey Where the key-encryption key lives: file (the default), aws-kms, azure-key-vault or gcp-kms, and the key’s name. See Keys and key management

At the first start, with no operator at all, the API makes an operator administrator named operator (Platform:FirstOperator) with a random first password, and writes the password once to first-operator-password.txt in the folder of keys (Platform:FirstOperatorFile). Sign in to the console with it, then delete the file. See The platform console.

Setting Default
ConnectionStrings:Migrations: the connection string of the database’s owner, used only to apply the database scripts at start. With it, ConnectionStrings:Registry names forge_api, the login the scripts make, which owns nothing and acts only as the application’s role: give it a password yourself (alter role forge_api password …, as the server’s administrator) and let it in where your server lists who may connect Empty: one login does both

| Auth:PreviousSigningKeys: the signing keys before Auth:SigningKey (Auth__PreviousSigningKeys__0, and on), kept in the secret store like it. Every access token names the key that signed it, and a token of a key listed here is accepted until it expires, so a new signing key signs nobody out: list the old key, start the API, and remove it once a token’s life and a minute have passed. A new signing key also changes the codes and hashes made from it, such as the demo’s sandbox codes and support codes not yet used | none | | Auth:AccessTokenMinutes: how long an access token lasts | 10 | | Auth:RefreshTokenHours: how long a session lasts without being renewed | 12 | | Auth:MaxFailedSignIns, Auth:LockoutMinutes: failed sign-ins that lock an account, and for how long | 5, 15 | | Auth:SignInFailuresPerMinute: failed sign-ins allowed from one address in a minute; past it, the address waits out the minute. Successful sign-ins do not count. With a cache (Cache:Redis) every API instance counts toward the one limit, here and in the per-address limits below; without one, or while it does not answer, each instance counts its own | 10 | | Auth:SignInPermitsPerMinute, Auth:SessionPermitsPerMinute: sign-ins and session renewals of any outcome from one address in a minute, a guard against a flood. An IPv6 address counts as its /64 block, here and in every per-address limit | 60, 6,000 | | Auth:TrustedNetworks: networks, such as your own offices’ outgoing addresses, that the per-address limits do not apply to (Auth__TrustedNetworks__0=203.0.113.0/24, several apart by commas). Each account still locks after its failed sign-ins. The address is the one your proxy settings make believable, so a caller cannot claim one | none | | Platform:SignInPermitsPerMinute, Platform:SessionPermitsPerMinute: tries of any outcome on the platform console’s sign-in, support codes and support sessions, and renewals of their sessions, from one address in a minute. Trusted networks do not change them | 10, 60 | | Assistant:Included:Vendor, :Model, :ApiKey: the instance’s own AI account, offered to organizations as Included. An account set in the platform console’s AI Account area takes their place; these apply when none is set there | none | | Assistant:Included:MonthlyTokens: each organization’s monthly allowance on that account | 2,000,000 | | Assistant:Included:RoutineModel, :RoutineDeployment: the model of a draft’s Routine tier on that account, the interview and the structure, and on Microsoft Foundry or Azure OpenAI its deployment (Azure OpenAI needs one). Empty runs the Routine tier on :Model at Assistant:RoutineEffort; a model of its own runs at Assistant:Effort, and passes the checks :Model does | Empty (the model itself) | | Assistant:Effort: how hard the model thinks on a draft’s Deep tier (threats, attack paths and risk), in Find Gaps and in the test of the settings: low, medium, high, xhigh or max. A vendor that takes no level, the custom address, is sent none | high | | Assistant:RoutineEffort: how hard the model thinks on a draft’s Routine tier when that tier runs the Deep model: one of the same levels. The API refuses to start with another. low is what the comparison of 2026-11-29 measured as building every structure as well as medium, for about half the cost | low | | Assistant:Included:Identity, :Region, :ResourceName, :Deployment, :Project, :Endpoint: the rest of that account, by vendor. Identity is key, or instance for the server’s own identity on Amazon Bedrock, Microsoft Foundry, Azure OpenAI or Google Cloud (Google Cloud takes no key). Region is the AWS Region for Bedrock, global, us or eu for Google Cloud, or an OpenAI data residency. ResourceName and Deployment are the Azure resource and deployment for Foundry and Azure OpenAI; Project is the Google Cloud project; Endpoint the https address of a custom server | Empty | | Assistant:Federation:Issuer: this instance’s OpenID Connect issuer, which an organization’s own Microsoft Entra tenant or Google Cloud project trusts instead of holding a secret: https://, the host in lower case, then /api/federation, with no trailing slash. Empty, organizations cannot choose Federated. Once one organization trusts it, the address can never change without each of them redoing the trust, so name a host that will not move, and make sure the edge serves /api/federation/.well-known/openid-configuration and /api/federation/jwks to the internet | Empty (off) | | Assistant:Federation:RotateDays: days between new signing keys of that issuer; each is published seven days before it signs and stays published seven days after | 90 | | Assistant:Azure:ManagedIdentityClientId: the client id of the user-assigned managed identity the server runs as, for the server’s own identity on Azure | Empty | | Assistant:CustomAddress:Enabled: offers organizations A custom address (OpenAI protocol), a model server of their own. The API refuses to start with it on where anyone may sign up | false | | Assistant:CustomAddress:AllowedHosts: when set, the only hosts a custom address may name (Assistant__CustomAddress__AllowedHosts__0=models.example.internal) | Empty (any public host) | | Assistant:CustomAddress:AllowPrivateAddresses: lets a custom address resolve to a private network (10/8, 172.16/12, 192.168/16, 100.64/10, fc00::/7). Loopback, link-local (and so a cloud’s metadata service) and the other reserved ranges are refused always | false | | Assistant:DraftDays: days after which an untouched draft is deleted | 30 | | Worker:CheckCacheMinutes: how long the pipeline check keeps what the engine said of a revision, per its content and the engine release, in the cache when there is one; whether the revision is the approved one is read on every call. 0 keeps nothing | 60 | | Trials:Days: days a trial lasts on the shared managed instance, after which its people read and export and change nothing; 0 ends no trial | 30 | | Trials:ReadOnlyDays: days after a trial’s end before the organization is deleted with everything in it; never less than 7 | 30 | | Trials:SignalDays: days a trial sign-up’s address is kept for the console’s Trials tab, and days the hash of an AI key and of its vendor account are kept after the key was replaced or removed, or after an ended trial was deleted; 0 keeps nothing | 90 | | Trials:AddressesFlagAt, Trials:KeysFlagAt: trial organizations from one address, and organizations with one AI key or one vendor account of which at least one is a trial, before they are listed | 3, 2 | | Billing:Enabled and the other Billing, Stripe and Tax settings: selling plans, card payment through Stripe and sales tax. See Plans and billing | off | | Domains:NameServers: the DNS servers the check of e-mail domains asks (Domains__NameServers__0=10.0.0.2, several apart by commas, each with a port if not 53). Name your internal resolver when this instance cannot reach DNS on the internet; the console says when no server answers | the machine’s own | | Domains:RecheckHours: how often a domain verified by its DNS record is looked at again | 24 | | Domains:GraceDays: days a verified domain’s record may be missing before the domain stops counting for sign-in; 0 stops it at the first check that does not find it | 14 |

An instance sends no e-mail until it is connected to Amazon SES or an SMTP server: in the platform console, under E-Mail, Outgoing E-Mail, which wins once set, or with Email:SesRegion naming the AWS Region of an Amazon SES account that holds your verified domain. Outgoing E-Mail has the steps, the policy the sending key needs and every setting. Without it, invitations show their link to the administrator who made them, and password resets are not offered.

People ask for help from Support in the menu, and operators answer in the console’s Support area (The console). It works with no setting at all. These change what it says and whom it tells.

Setting Unless Set
Support:NotifyAddresses (Support__NotifyAddresses__0, __1 …): who is told by e-mail of a new request and of a demo visitor’s message The instance’s operator addresses, Email:OperatorAddresses; nobody when those are empty too
Support:ResponseText: one sentence the Support page shows about when an answer comes, such as “We answer within one business day.” Nothing is promised
Support:RequestsPerPersonPerDay: how many requests one person may open in a day 20
Support:ContactsPerAddressPerDay: how many messages one address may send from the public demo’s contact form in a day 3

Email:SupportAddress is the address the sign-in page and the Support page show for writing from outside the application.

The hosted service, where Platform:Mode is managed, can publish terms of service under /legal and ask each person to accept them. A release carries them; until one does, no page links to them and nobody is asked anything. On an instance you run yourself (self-hosted) your organization’s own agreement applies, and nobody is asked anything.

Setting Unless Set
Legal:DocumentsPath: a folder to read the documents from, one folder a document and one Markdown file a version The documents of the release, if any

A self-hosted instance has one organization. Make it, with its first administrator’s invitation link, with the API’s own command:

Terminal window
dotnet NetBlueprint.Registry.Api.dll set-up --organization "<name>" --administrator <their address> --address https://<your host>

In the API’s container, the image already runs that file, so give it set-up and the rest as its arguments. It applies the database scripts first, then prints the link. Send it to the administrator: it works once, for seven days. Run the command again and it prints a fresh link and withdraws the old one. Once someone has accepted the invitation, it says “That person already has an account here and signs in as usual.”

The administrator then invites everyone else.

Sign-In With Microsoft, Google and Apple Accounts

Section titled “Sign-In With Microsoft, Google and Apple Accounts”

These are optional. Your people can sign in with a Microsoft account, a Google account or an Apple ID once you register your instance with that provider, with your own accounts there. A provider you do not register is not offered, and nothing else changes. Passwords, passkeys, the authenticator app and each organization’s own single sign-on work without any of them.

Every provider sends people back to one return address: https://<your host>/api/auth/accounts/callback.

Setting What It Is
SignIn:Microsoft:ClientId, SignIn:Microsoft:ClientSecret An app registration in the Microsoft Entra admin center for Any Entra ID Tenant + Personal Microsoft accounts, of platform Web. Add the optional ID token claims email and xms_edov; without xms_edov, Microsoft’s addresses are never taken as checked. The client secret expires: note when.
SignIn:Google:ClientId, SignIn:Google:ClientSecret An OAuth client of type Web application in the Google Cloud console, with the scopes openid, email and profile, published for External users.
SignIn:Apple:ClientId, SignIn:Apple:TeamId, SignIn:Apple:KeyId A Services ID with Sign in with Apple (the client id), your Apple Developer account’s Team ID, and the Key ID of a Sign in with Apple key. Apple takes only https addresses with a domain name.
SignIn:Apple:PrivateKeyPath or SignIn:Apple:PrivateKey That key’s .p8 file, or its text. The API makes Apple’s client secret from it at each sign-in, so no secret needs renewing.
SignIn:InvitationDays How long an invitation link works, in days. A value below 1 counts as 1, and one above 30 as 30. The default is 7.

Keep the secrets and the key in your secret store, never in a file beside the settings.

The full list, with every setting’s meaning and default, is in api/README.md of the product’s repository.