Configuration options
Every AddNafasServer option and its default, and the dashboard's mount path.
All of these are set inside AddNafasServer(options => { ... }).
| Option | Default | Notes |
|---|---|---|
Provider | DatabaseProvider.Sqlite | Sqlite or SqlServer |
ConnectionString | Data Source=nafas.db (SQLite only) | Set directly, or use ConnectionStringName instead |
ConnectionStringName | — | Resolves from appsettings.json's ConnectionStrings section first, then classic web.config's <connectionStrings> |
Schema | dbo | SQL Server only — keeps Nafas's tables under a named schema, separate from the rest of your database |
RetentionDays | 30 | How long logs/metrics/traces are kept before a background sweep deletes them |
AlertWebhookUrl | — | Where alert incidents are POSTed as JSON. Alert rules and incidents still work without it; nothing gets delivered anywhere until it's set |
ServiceName | IHostEnvironment.ApplicationName | Overrides the service name stamped on everything ingested |
Authorize | null (local requests only) | Gates every request to the dashboard — see Security |
Mounting the dashboard
UseNafasDashboard(path) takes the mount path for the dashboard UI itself
(default "/nafas") — pick any path your app isn't already using.