forked from SchemaStore/schemastore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appsettings.json
696 lines (696 loc) · 23.7 KB
/
appsettings.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
{
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
"webOptimizer": {
"title": "web optimizer",
"type": "object",
"description": "Settings for WebOptimizer.Core",
"properties": {
"enableCaching": {
"description": "Determines if the \"cache-control\" HTTP headers should be set and if conditional GET (304) requests should be supported. This could be helpful to disable while in development mode.",
"type": "boolean"
},
"enableTagHelperBundling": {
"description": "Determines if `<script>` and `<link>` elements should point to the bundled path or a reference per source file should be created. This is helpful to disable when in development mode.",
"type": "boolean",
"default": true
}
}
},
"cdn": {
"title": "CDN",
"type": "object",
"description": "Definitions for WebEssentials.AspNetCore.CdnTagHelpers",
"properties": {
"url": {
"description": "An absolute URL used as a prefix for static resources",
"type": "string",
"pattern": "^((//|https?://).+|)$"
},
"prefetch": {
"description": "If true, injects a <link rel='dns-prefetch'> tag that speeds up DNS resolution to the CDN.",
"type": "boolean",
"default": true
}
}
},
"pwa": {
"properties": {
"cacheId": {
"description": "The cache identifier of the service worker (can be any string). Change this property to force the service worker to reload in browsers.",
"type": "string",
"default": "v1.0"
},
"offlineRoute": {
"description": "The route to the page to show when offline.",
"type": "string",
"default": "/offline.html"
},
"registerServiceWorker": {
"description": "Determines if a script that registers the service worker should be injected into the bottom of the HTML page.",
"type": "boolean",
"default": true
},
"registerWebmanifest": {
"description": "Determines if a meta tag that points to the web manifest should be inserted at the end of the head element.",
"type": "boolean",
"default": true
},
"routesToPreCache": {
"description": "A comma separated list of routes to pre-cache when service worker installs in the browser.",
"type": "string",
"default": ""
},
"strategy": {
"description": "Selects one of the predefined service worker types.",
"enum": ["cacheFirst", "cacheFirstSafe", "minimal", "networkFirst"],
"default": "cacheFirstSafe"
}
}
},
"ElmahIo": {
"properties": {
"ApiKey": {
"description": "An elmah.io API key with the Messages | Write permission.",
"type": "string",
"pattern": "^([0-9a-f]{32})|(#\\{.*\\}#?)$"
},
"LogId": {
"description": "The Id of the elmah.io log to store messages in.",
"type": "string",
"pattern": "^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})|(#\\{.*\\}#?)$"
},
"Application": {
"description": "An application name to put on all error messages.",
"type": "string"
},
"HandledStatusCodesToLog": {
"description": "A list of HTTP status codes (besides 404) to log even though no exception is thrown.",
"type": "array",
"items": {
"type": "integer"
}
},
"TreatLoggingAsBreadcrumbs": {
"description": "Include log messages from Microsoft.Extensions.Logging as breadcrumbs.",
"type": "boolean"
},
"HeartbeatId": {
"description": "The Id of the elmah.io heartbeat to notify.",
"type": "string",
"pattern": "^([0-9a-f]{32})|(#\\{.*\\}#?)$"
}
},
"required": ["ApiKey", "LogId"]
},
"protocols": {
"description": "The protocols enabled on the endpoint.",
"type": "string",
"enum": [
"None",
"Http1",
"Http2",
"Http1AndHttp2",
"Http3",
"Http1AndHttp2AndHttp3"
]
},
"certificate": {
"title": "certificate",
"description": "Certificate configuration.",
"type": "object",
"properties": {
"Path": {
"description": "The certificate file path. If a file path is specified then the certificate will be loaded from the file system.",
"type": "string"
},
"KeyPath": {
"description": "The certificate key file path. Available in .NET 5 and later.",
"type": "string"
},
"Password": {
"description": "The certificate password used to access the private key.",
"type": "string"
},
"Subject": {
"description": "The certificate subject. If a subject is specified then the certificate will be loaded from the certificate store.",
"type": "string"
},
"Store": {
"description": "The certificate store name. Defaults to 'My'.",
"type": "string",
"default": "My"
},
"Location": {
"description": "The certificate store location. Defaults to 'CurrentUser'.",
"type": "string",
"enum": ["LocalMachine", "CurrentUser"],
"default": "CurrentUser"
},
"AllowInvalid": {
"description": "A value indicating whether or not to load certificates that are considered invalid. Defaults to false.",
"type": "boolean",
"default": false
}
}
},
"sslProtocols": {
"description": "Specifies allowable SSL protocols. Defaults to 'None' which allows the operating system to choose the best protocol to use, and to block protocols that are not secure. Unless your app has a specific reason not to, you should use this default. Available in .NET 5 and later.",
"type": "array",
"items": {
"type": "string",
"enum": ["None", "Tls", "Tls11", "Tls12", "Tls13"],
"default": "None"
}
},
"clientCertificateMode": {
"description": "Specifies the client certificate requirements for a HTTPS connection. Defaults to 'NoCertificate'. Available in .NET 5 and later.",
"type": "string",
"enum": ["NoCertificate", "AllowCertificate", "RequireCertificate"],
"default": "NoCertificate"
},
"kestrel": {
"title": "kestrel",
"type": "object",
"description": "ASP.NET Core Kestrel server configuration.",
"properties": {
"Endpoints": {
"title": "endpoints",
"description": "Endpoints that Kestrel listens to for network requests. Each endpoint has a name specified by its JSON property name.",
"type": "object",
"additionalProperties": {
"title": "endpoint options",
"description": "Kestrel endpoint configuration.",
"type": "object",
"properties": {
"Url": {
"description": "The scheme, host name, and port the endpoint will listen on. A Url is required.",
"type": "string",
"format": "uri"
},
"Protocols": {
"$ref": "#/definitions/protocols"
},
"SslProtocols": {
"$ref": "#/definitions/sslProtocols"
},
"Certificate": {
"$ref": "#/definitions/certificate"
},
"ClientCertificateMode": {
"$ref": "#/definitions/clientCertificateMode"
},
"Sni": {
"title": "SNI",
"description": "Server Name Indication (SNI) configuration. This enables the mapping of client requested host names to certificates and other TLS settings. Wildcard names prefixed with '*.', as well as a top level '*' are supported. Available in .NET 5 and later.",
"type": "object",
"additionalProperties": {
"title": "SNI options",
"description": "Endpoint SNI configuration.",
"type": "object",
"properties": {
"Protocols": {
"$ref": "#/definitions/protocols"
},
"SslProtocols": {
"$ref": "#/definitions/sslProtocols"
},
"Certificate": {
"$ref": "#/definitions/certificate"
},
"ClientCertificateMode": {
"$ref": "#/definitions/clientCertificateMode"
}
}
}
}
},
"required": ["Url"]
}
},
"EndpointDefaults": {
"title": "endpoint defaults",
"description": "Default configuration applied to all endpoints. Named endpoint specific configuration overrides defaults.",
"type": "object",
"properties": {
"Protocols": {
"$ref": "#/definitions/protocols"
},
"SslProtocols": {
"$ref": "#/definitions/sslProtocols"
},
"ClientCertificateMode": {
"$ref": "#/definitions/clientCertificateMode"
}
}
},
"Certificates": {
"title": "certificates",
"description": "Certificates that Kestrel uses with HTTPS endpoints. Each certificate has a name specified by its JSON property name. The 'Default' certificate is used by HTTPS endpoints that haven't specified a certificate.",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/certificate"
}
}
}
},
"logLevelThreshold": {
"description": "Log level threshold.",
"type": "string",
"enum": [
"Trace",
"Debug",
"Information",
"Warning",
"Error",
"Critical",
"None"
]
},
"logLevel": {
"title": "logging level options",
"description": "Log level configurations used when creating logs. Only logs that exceeds its matching log level will be enabled. Each log level configuration has a category specified by its JSON property name. For more information about configuring log levels, see https://docs.microsoft.com/aspnet/core/fundamentals/logging/#configure-logging.",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/logLevelThreshold"
}
},
"logging": {
"title": "logging options",
"type": "object",
"description": "Configuration for Microsoft.Extensions.Logging.",
"properties": {
"LogLevel": {
"$ref": "#/definitions/logLevel"
},
"Console": {
"properties": {
"LogLevel": {
"$ref": "#/definitions/logLevel"
},
"FormatterName": {
"description": "Name of the log message formatter to use. Defaults to 'simple'.",
"type": "string",
"default": "simple"
},
"FormatterOptions": {
"title": "formatter options",
"description": "Log message formatter options. Additional properties are available on the options depending on the configured formatter. The formatter is specified by FormatterName.",
"type": "object",
"properties": {
"IncludeScopes": {
"description": "Include scopes when true. Defaults to false.",
"type": "boolean",
"default": false
},
"TimestampFormat": {
"description": "Format string used to format timestamp in logging messages. Defaults to null.",
"type": "string"
},
"UseUtcTimestamp": {
"description": "Indication whether or not UTC timezone should be used to for timestamps in logging messages. Defaults to false.",
"type": "boolean",
"default": false
}
}
},
"LogToStandardErrorThreshold": {
"description": "The minimum level of messages are written to Console.Error.",
"$ref": "#/definitions/logLevelThreshold"
}
}
},
"EventSource": {
"properties": {
"LogLevel": {
"$ref": "#/definitions/logLevel"
}
}
},
"Debug": {
"properties": {
"LogLevel": {
"$ref": "#/definitions/logLevel"
}
}
},
"EventLog": {
"properties": {
"LogLevel": {
"$ref": "#/definitions/logLevel"
}
}
},
"ElmahIo": {
"properties": {
"LogLevel": {
"$ref": "#/definitions/logLevel"
}
}
},
"ElmahIoBreadcrumbs": {
"properties": {
"LogLevel": {
"$ref": "#/definitions/logLevel"
}
}
}
},
"additionalProperties": {
"title": "provider logging settings",
"type": "object",
"description": "Logging configuration for a provider. The provider name must match the configuration's JSON property property name.",
"properties": {
"LogLevel": {
"$ref": "#/definitions/logLevel"
}
}
}
},
"allowedHosts": {
"description": "ASP.NET Core host filtering middleware configuration. Allowed hosts is a semicolon-delimited list of host names without port numbers. Requests without a matching host name will be refused. Host names may be prefixed with a '*.' wildcard, or use '*' to allow all hosts.",
"type": "string"
},
"connectionStrings": {
"title": "connection string options",
"description": "Connection string configuration. Get connection strings with the IConfiguration.GetConnectionString(string) extension method.",
"type": "object",
"additionalProperties": {
"description": "Connection string configuration. Each connection string has a name specified by its JSON property name.",
"type": "string"
}
},
"NLog": {
"title": "NLog options",
"type": "object",
"description": "NLog configuration",
"default": {},
"properties": {
"autoReload": {
"type": "boolean",
"description": "Automatically reload the NLog configuration when notified that appsettings.json file has changed.",
"default": false
},
"throwConfigExceptions": {
"type": ["boolean", "null"],
"description": "Throws an exception when there is a config error? If not set, then throwExceptions will be used for this setting.",
"default": false
},
"throwExceptions": {
"type": "boolean",
"description": "Throws an exception when there is an error. For unit testing only and advanced troubleshooting.",
"default": false
},
"internalLogLevel": {
"type": "string",
"description": "The minimal log level for the internal logger.",
"enum": ["Trace", "Debug", "Info", "Warn", "Error", "Fatal", "Off"],
"default": "Off"
},
"internalLogFile": {
"type": "string",
"description": "Write internal log to the specified filepath"
},
"internalLogToConsole": {
"type": "boolean",
"description": "Write internal log to a console",
"default": "false"
},
"internalLogToConsoleError": {
"type": "boolean",
"description": "Write internal log to a console with error stream",
"default": "false"
},
"globalThreshold": {
"type": "string",
"description": "Log events below this threshold are not logged.",
"enum": ["Trace", "Debug", "Info", "Warn", "Error", "Fatal", "Off"],
"default": "Off"
},
"autoShutdown": {
"type": "boolean",
"description": "Automatically call `LogFactory.Shutdown` on AppDomain.Unload or AppDomain.ProcessExit",
"default": "true"
},
"extensions": {
"type": "array",
"description": "Load NLog extension packages for additional targets and layouts",
"default": [],
"items": {
"title": "extension",
"type": "object",
"description": "",
"default": {},
"properties": {
"assembly": {
"type": "string",
"description": "Assembly Name of the NLog extension package."
},
"prefix": {
"type": "string",
"description": "Appends prefix to all type-names loaded from the assembly",
"default": ""
},
"assemblyFile": {
"type": "string",
"description": "Absolute filepath to the Assembly-file of the NLog extension package.",
"default": ""
}
}
}
},
"variables": {
"title": "variables",
"type": "object",
"description": "Key-value pair of variables",
"propertyNames": {
"pattern": "^[A-Za-z0-9_.-]+$"
},
"patternProperties": {
".*": {
"type": ["number", "string", "boolean"]
}
}
},
"targetDefaultWrapper": {
"title": "default wrapper",
"type": "object",
"description": "Wrap all defined targets with this custom target wrapper.",
"default": {},
"required": ["type"],
"properties": {
"type": {
"type": "string",
"description": ""
}
}
},
"targets": {
"title": "targets",
"type": "object",
"description": "",
"default": {},
"properties": {
"async": {
"type": "boolean",
"description": "Wrap all defined targets using AsyncWrapper with OverflowAction=Discard for better performance."
}
}
},
"rules": {
"oneOf": [
{
"type": "array",
"description": "",
"default": [],
"items": {
"$ref": "#/definitions/NLogRulesItem"
}
},
{
"title": "rules",
"type": "object",
"propertyNames": {
"pattern": "^[0-9]+$"
},
"patternProperties": {
".*": {
"$ref": "#/definitions/NLogRulesItem"
}
}
}
]
}
}
},
"NLogRulesItem": {
"title": "NLog rule item",
"type": "object",
"description": "Redirect LogEvents from matching Logger objects to specified targets",
"default": {},
"required": ["logger"],
"properties": {
"logger": {
"type": "string",
"description": "Match Logger objects based on their Logger-name. Can use wildcard characters ('*' or '?')."
},
"ruleName": {
"type": "string",
"description": "Rule identifier to allow rule lookup with Configuration.FindRuleByName and Configuration.RemoveRuleByName."
},
"level": {
"anyOf": [
{
"type": "string",
"description": "",
"enum": ["Trace", "Debug", "Info", "Warn", "Error", "Fatal"]
},
{
"type": "string"
}
]
},
"levels": {
"type": "string",
"description": "Comma separated list of levels that this rule matches."
},
"minLevel": {
"anyOf": [
{
"type": "string",
"description": "",
"enum": ["Trace", "Debug", "Info", "Warn", "Error", "Fatal"]
},
{
"type": "string"
}
]
},
"maxLevel": {
"anyOf": [
{
"type": "string",
"description": "",
"enum": ["Trace", "Debug", "Info", "Warn", "Error", "Fatal"]
},
{
"type": "string"
}
]
},
"finalMinLevel": {
"anyOf": [
{
"type": "string",
"description": "",
"enum": ["Trace", "Debug", "Info", "Warn", "Error", "Fatal"]
},
{
"type": "string"
}
]
},
"writeTo": {
"type": "string",
"description": "Name or names of a target - separated by comma. Remove this property for sending events to the blackhole."
},
"final": {
"type": "boolean",
"description": "Ignore further rules if this one matches.",
"default": false
},
"enabled": {
"type": "boolean",
"description": "",
"default": true
},
"filters": {
"oneOf": [
{
"type": "array",
"description": "",
"default": [],
"items": {
"title": "filter",
"type": "object",
"description": "",
"default": {},
"required": ["type"],
"properties": {
"type": {
"type": "string",
"description": ""
},
"action": {
"type": "string",
"description": "Result action when filter matches logevent.",
"enum": [
"Neutral",
"Log",
"Ignore",
"LogFinal",
"IgnoreFinal"
],
"default": "Neutral"
}
}
}
},
{
"title": "filter",
"type": "object",
"description": "",
"default": {}
}
]
},
"filterDefaultAction": {
"type": "string",
"description": "Default action if none of the filters match.",
"enum": ["Neutral", "Log", "Ignore", "LogFinal", "IgnoreFinal"],
"default": "Ignore"
}
}
}
},
"id": "https://json.schemastore.org/appsettings.json",
"patternProperties": {
"^WebOptimizer$": {
"$ref": "#/definitions/webOptimizer"
},
"^webOptimizer$": {
"$ref": "#/definitions/webOptimizer"
},
"^weboptimizer$": {
"$ref": "#/definitions/webOptimizer"
},
"^(cdn|Cdn)$": {
"$ref": "#/definitions/cdn"
},
"^(pwa|PWA|Pwa)$": {
"$ref": "#/definitions/pwa"
},
"^(ElmahIo|Elmahio|elmahIo|elmahio)$": {
"$ref": "#/definitions/ElmahIo"
},
"^(nlog|Nlog|NLog)$": {
"$ref": "#/definitions/NLog"
}
},
"properties": {
"Kestrel": {
"$ref": "#/definitions/kestrel"
},
"Logging": {
"$ref": "#/definitions/logging"
},
"AllowedHosts": {
"$ref": "#/definitions/allowedHosts"
},
"ConnectionStrings": {
"$ref": "#/definitions/connectionStrings"
}
},
"title": "JSON schema ASP.NET Core's appsettings.json file",
"type": "object"
}