|
| 1 | +{ |
| 2 | + "OpenTelemetryOptions": { |
| 3 | + "Enabled": true, |
| 4 | + "Tracing": { "Enabled": true }, |
| 5 | + "Metrics": { "Enabled": true }, |
| 6 | + "Exporter": { |
| 7 | + "Otlp": { |
| 8 | + "Enabled": false, |
| 9 | + "Endpoint": "", |
| 10 | + "Protocol": "grpc" |
| 11 | + } |
| 12 | + }, |
| 13 | + "Jobs": { "Enabled": true }, |
| 14 | + "Mediator": { "Enabled": true }, |
| 15 | + "Http": { "Histograms": { "Enabled": true } }, |
| 16 | + "Data": { "FilterEfStatements": true, "FilterRedisCommands": true } |
| 17 | + }, |
| 18 | + "Serilog": { |
| 19 | + "Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.OpenTelemetry" ], |
| 20 | + "Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId", "WithCorrelationId", "WithProcessId", "WithProcessName" ], |
| 21 | + "MinimumLevel": { "Default": "Information" }, |
| 22 | + "WriteTo": [ |
| 23 | + { "Name": "Console", "Args": { "restrictedToMinimumLevel": "Information" } }, |
| 24 | + { "Name": "OpenTelemetry", "Args": { "endpoint": "", "protocol": "grpc", "resourceAttributes": { "service.name": "Playground.Api" } } } |
| 25 | + ] |
| 26 | + }, |
| 27 | + "Logging": { |
| 28 | + "LogLevel": { |
| 29 | + "Default": "Information", |
| 30 | + "Microsoft.AspNetCore": "Warning", |
| 31 | + "Hangfire": "Warning", |
| 32 | + "Microsoft.EntityFrameworkCore": "Warning" |
| 33 | + } |
| 34 | + }, |
| 35 | + "DatabaseOptions": { |
| 36 | + "Provider": "POSTGRESQL", |
| 37 | + "ConnectionString": "" |
| 38 | + }, |
| 39 | + "OriginOptions": { |
| 40 | + "OriginUrl": "" |
| 41 | + }, |
| 42 | + "CachingOptions": { |
| 43 | + "Redis": "" |
| 44 | + }, |
| 45 | + "HangfireOptions": { |
| 46 | + "Username": "", |
| 47 | + "Password": "", |
| 48 | + "Route": "/jobs" |
| 49 | + }, |
| 50 | + "AllowedHosts": "api.example.com", |
| 51 | + "OpenApiOptions": { |
| 52 | + "Enabled": false, |
| 53 | + "Title": "FSH PlayGround API", |
| 54 | + "Version": "v1", |
| 55 | + "Description": "The FSH Starter Kit API for Modular/Multitenant Architecture.", |
| 56 | + "Contact": { "Name": "Mukesh Murugan", "Url": "https://codewithmukesh.com", "Email": "[email protected]" }, |
| 57 | + "License": { "Name": "MIT License", "Url": "https://opensource.org/licenses/MIT" } |
| 58 | + }, |
| 59 | + "CorsOptions": { |
| 60 | + "AllowAll": false, |
| 61 | + "AllowedOrigins": [], |
| 62 | + "AllowedHeaders": [ "content-type", "authorization" ], |
| 63 | + "AllowedMethods": [ "GET", "POST", "PUT", "DELETE" ] |
| 64 | + }, |
| 65 | + "JwtOptions": { |
| 66 | + "Issuer": "fsh.local", |
| 67 | + "Audience": "fsh.clients", |
| 68 | + "SigningKey": "", |
| 69 | + "AccessTokenMinutes": 60, |
| 70 | + "RefreshTokenDays": 7 |
| 71 | + }, |
| 72 | + "MailOptions": { |
| 73 | + "From": "", |
| 74 | + "Host": "", |
| 75 | + "Port": 0, |
| 76 | + "UserName": "", |
| 77 | + "Password": "", |
| 78 | + "DisplayName": "" |
| 79 | + }, |
| 80 | + "RateLimitingOptions": { |
| 81 | + "Enabled": true, |
| 82 | + "Global": { "PermitLimit": 100, "WindowSeconds": 60, "QueueLimit": 0 }, |
| 83 | + "Auth": { "PermitLimit": 10, "WindowSeconds": 60, "QueueLimit": 0 } |
| 84 | + }, |
| 85 | + "MultitenancyOptions": { |
| 86 | + "RunTenantMigrationsOnStartup": false |
| 87 | + }, |
| 88 | + "Storage": { |
| 89 | + "Provider": "local" |
| 90 | + } |
| 91 | +} |
0 commit comments