Files
xSaherElmAiApi/appsettings.json
T
2026-11-08 17:59:31 +03:30

96 lines
2.4 KiB
JSON

{
"Version": "0.1",
"Name": "xAiApi",
"DefaultLanguage": "fa-IR",
"XPoweredValue": "SaherElmITCenter",
"WelcomeMessage": "Welcome to xSaherElm Project's AI API",
"AllowedOrigins": [
"http://api.saherelm.ir",
"https://api.saherelm.ir",
"http://api.saherelmhub.ir",
"https://api.saherelmhub.ir"
],
"SwaggerConfiguration": {
"Version": "v1.0",
"Title": "xSaherElm AI API",
"Description": "Complete AI API Documentation",
"Contact": {
"Name": "Hadi Khazaee Asl",
"Email": "hadi_khazaee_asl@yahoo.com",
"Url": "https://www.saherelm.ir"
},
"DefaultValues": {
"version": "1.0"
}
},
"HttpServiceConfiguration": {
"DisableSSLCheck": true,
"DefaultClientTimeout": -1
},
"DataServiceConfiguration": {
"Databases": {
"xAiApiDb": {
"Provider": "SQLITE",
"ConnectionString": "Filename=./Db/XAiApi.db",
"SeedItems": {}
}
},
"EnableTracking": true,
"EnableSoftDelete": true,
"EnableDetailedErrors": false,
"SeedingMode": "AddIfNotExists",
"EnableSensitiveDataLogging": true,
"PagingConfiguration": {
"DefaultPageSize": 20,
"MaxAvailablePageSize": 400,
"MinAvailablePageSize": 5
},
"GraphQLBasePath": "/graphs"
},
"PushServiceConfiguration": {
"BaseRoute": "hubs",
"AddSupportMessageProtocol": true
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
},
"XLogger": {
"Enabled": true,
"ApplicationName": "xAiApi",
"EnvironmentName": "Production",
"MinimumLevel": "Information",
"Queue": {
"Enabled": true,
"Capacity": 10000,
"ShutdownTimeoutSeconds": 10
},
"File": {
"Enabled": true,
"Directory": "./Logs",
"FileName": "xAiApi-.log",
"Format": "Json",
"MinimumLevel": "Information",
"RetainedFileCountLimit": 30
},
"Database": {
"Enabled": false,
"Provider": "Microsoft.Data.Sqlite",
"ConnectionString": "Filename=./Db/XLogs.db",
"TableName": "XLogs",
"AutoCreateTable": true,
"MinimumLevel": "Warning"
},
"Event": {
"Enabled": false,
"Topic": "application-logs",
"Action": "ApplicationLogCreated",
"Sender": "xAiApi",
"MinimumLevel": "Error"
}
}
},
"AllowedHosts": "*"
}