Add XBot Service Configurations in appSettings ...

This commit is contained in:
2026-11-11 18:05:31 +03:30
parent 374c3258ef
commit f013a46362
+223 -218
View File
@@ -1,220 +1,225 @@
{ {
"Version": "0.1", "Version": "0.1",
"Name": "xApi", "Name": "xApi",
"DefaultLanguage": "fa-IR", "DefaultLanguage": "fa-IR",
"XPoweredValue": "SaherElmITCenter", "XPoweredValue": "SaherElmITCenter",
"WelcomeMessage": "Welcome to xSaherElm Project's API", "WelcomeMessage": "Welcome to xSaherElm Project's API",
"AllowedOrigins": ["http://saherelm.ir", "https://saherelm.ir"], "AllowedOrigins": ["http://saherelm.ir", "https://saherelm.ir"],
"SwaggerConfiguration": { "SwaggerConfiguration": {
"Version": "v1.0", "Version": "v1.0",
"Title": "xSaherElm API", "Title": "xSaherElm API",
"Description": "Complete API Documentation", "Description": "Complete API Documentation",
"Contact": { "Contact": {
"Name": "Hadi Khazaee Asl", "Name": "Hadi Khazaee Asl",
"Email": "hadi_khazaee_asl@yahoo.com", "Email": "hadi_khazaee_asl@yahoo.com",
"Url": "https://www.saherelm.ir" "Url": "https://www.saherelm.ir"
}, },
"DefaultValues": { "DefaultValues": {
"version": "1.0" "version": "1.0"
} }
}, },
"MessageConfiguration": { "MessageConfiguration": {
"MailConfigurations": { "MailConfigurations": {
"gmail": { "gmail": {
"Title": "SaherElm Dashboard", "Title": "SaherElm Dashboard",
"Host": "smtp.gmail.com", "Host": "smtp.gmail.com",
"Port": 587, "Port": 587,
"EnableSsl": true, "EnableSsl": true,
"Username": "saherelm@gmail.com", "Username": "saherelm@gmail.com",
"Password": "vzuz gtrk tndb ctbc" "Password": "vzuz gtrk tndb ctbc"
} }
}, },
"SmsConfigurations": { "SmsConfigurations": {
"yoursms": { "yoursms": {
"ServiceUrl": "http://sms.yourprovider.ir", "ServiceUrl": "http://sms.yourprovider.ir",
"Username": "user", "Username": "user",
"Password": "psw", "Password": "psw",
"LineNumber": "linenumber", "LineNumber": "linenumber",
"UserApiKey": "", "UserApiKey": "",
"SecretKey": "" "SecretKey": ""
} }
} }
}, },
"MessageResourceTitles": { "MessageResourceTitles": {
"Terms": "terms", "Terms": "terms",
"Invite": "user_invite_msg", "Invite": "user_invite_msg",
"RegistrationApprove": "registration_approve_msg", "RegistrationApprove": "registration_approve_msg",
"Registered": "registered_msg", "Registered": "registered_msg",
"VerificationCode": "verification_code_msg", "VerificationCode": "verification_code_msg",
"ChangePassword": "change_password_msg", "ChangePassword": "change_password_msg",
"PasswordChanged": "password_changed_msg", "PasswordChanged": "password_changed_msg",
"NewDeviceLoggedIn": "new_device_logged_in_msg" "NewDeviceLoggedIn": "new_device_logged_in_msg"
}, },
"DataServiceConfiguration": { "DataServiceConfiguration": {
"Databases": { "Databases": {
"xApiDb": { "xApiDb": {
"Provider": "SQLITE", "Provider": "SQLITE",
"ConnectionString": "Filename=./Db/XApi.db", "ConnectionString": "Filename=./Db/XApi.db",
"SeedItems": { "SeedItems": {
"XTest": [ "XTest": [
{ {
"Firstname": "Hadi", "Firstname": "Hadi",
"Lastname": "Khazaee Asl" "Lastname": "Khazaee Asl"
}, },
{ {
"Firstname": "Amir Ali", "Firstname": "Amir Ali",
"Lastname": "Khazaee Asl" "Lastname": "Khazaee Asl"
} }
] ]
} }
} }
}, },
"EnableTracking": true, "EnableTracking": true,
"EnableSoftDelete": true, "EnableSoftDelete": true,
"EnableDetailedErrors": false, "EnableDetailedErrors": false,
"SeedingMode": "AddIfNotExists", "SeedingMode": "AddIfNotExists",
"EnableSensitiveDataLogging": true, "EnableSensitiveDataLogging": true,
"PagingConfiguration": { "PagingConfiguration": {
"DefaultPageSize": 20, "DefaultPageSize": 20,
"MaxAvailablePageSize": 400, "MaxAvailablePageSize": 400,
"MinAvailablePageSize": 5 "MinAvailablePageSize": 5
}, },
"GraphQLBasePath": "/graphs" "GraphQLBasePath": "/graphs"
}, },
"HttpServiceConfiguration": { "HttpServiceConfiguration": {
"DisableSSLCheck": true, "DisableSSLCheck": true,
"DefaultClientTimeout": -1 "DefaultClientTimeout": -1
}, },
"IdentityServiceConfiguration": { "IdentityServiceConfiguration": {
"Authority": "https://172.18.0.151", "Authority": "https://172.18.0.151",
"ApiName": "xSaherElmAPI", "ApiName": "xSaherElmAPI",
"ApiSecret": "s@H@1694056", "ApiSecret": "s@H@1694056",
"ClientId": "xSaherElmAPIClient", "ClientId": "xSaherElmAPIClient",
"ClientSecret": "s@H@1694056", "ClientSecret": "s@H@1694056",
"XPoweredValue": "SaherElmITCenter", "XPoweredValue": "SaherElmITCenter",
"XRevisionSecretKey": "SaherElmITCenter@1694056", "XRevisionSecretKey": "SaherElmITCenter@1694056",
"DefaultClientTimeout": -1 "DefaultClientTimeout": -1
}, },
"PushServiceConfiguration": { "PushServiceConfiguration": {
"BaseRoute": "hubs", "BaseRoute": "hubs",
"AddSupportMessageProtocol": true "AddSupportMessageProtocol": true
}, },
"StorageConfiguration": { "StorageConfiguration": {
"Authority": "https://api.saherelm.ir", "Authority": "https://api.saherelm.ir",
"IdentityAuthority": "https://ids.saherelm.ir", "IdentityAuthority": "https://ids.saherelm.ir",
"Storage": "Storage", "Storage": "Storage",
"Temp": "Temp", "Temp": "Temp",
"Thumb": "Thumb", "Thumb": "Thumb",
"Uploads": "Uploads", "Uploads": "Uploads",
"Widgets": "Widgets", "Widgets": "Widgets",
"Image": "Image", "Image": "Image",
"Audio": "Audio", "Audio": "Audio",
"Video": "Video", "Video": "Video",
"Document": "Document", "Document": "Document",
"FilePrefix": "xSaherElm_", "FilePrefix": "xSaherElm_",
"ThumbPrefix": "Thumb_", "ThumbPrefix": "Thumb_",
"ThumbSize": 512, "ThumbSize": 512,
"ThumbQuality": 72, "ThumbQuality": 72,
"MaxFileSize": 41943040 "MaxFileSize": 41943040
}, },
"TermsAndConditionsService": { "TermsAndConditionsService": {
"ResourceTitle": "terms_and_conditions", "ResourceTitle": "terms_and_conditions",
"SeedingMode": "AddIfNotExists", "SeedingMode": "AddIfNotExists",
"TermsAndConditions": [ "TermsAndConditions": [
{ {
"Language": "fa-IR", "Language": "fa-IR",
"TranslatedValue": "شرایط و ضوابط ثبت نام در سامانه" "TranslatedValue": "شرایط و ضوابط ثبت نام در سامانه"
} }
] ]
}, },
"CategoryServiceConfiguration": { "CategoryServiceConfiguration": {
"Categories": [], "Categories": [],
"SubCategories": [ "SubCategories": [
{ {
"titles": { "titles": {
"locales": [ "locales": [
{ {
"language": "fa-IR", "language": "fa-IR",
"value": "ورزشی" "value": "ورزشی"
} }
] ]
}, },
"descriptions": { "descriptions": {
"locales": [ "locales": [
{ {
"language": "fa-IR", "language": "fa-IR",
"value": "موارد مرتبط با ورزش" "value": "موارد مرتبط با ورزش"
} }
] ]
}, },
"category": { "category": {
"titles": { "titles": {
"locales": [ "locales": [
{ {
"language": "fa-IR", "language": "fa-IR",
"value": "خبر" "value": "خبر"
} }
] ]
}, },
"descriptions": { "descriptions": {
"locales": [ "locales": [
{ {
"language": "fa-IR", "language": "fa-IR",
"value": "اخبار در این گروه قرار می گیرند" "value": "اخبار در این گروه قرار می گیرند"
} }
] ]
} }
} }
} }
] ]
}, },
"ServicesConfiguration": { "ServicesConfiguration": {
"SummaryEndsWdith": " ...", "SummaryEndsWdith": " ...",
"ContentSummaryMaxLength": 255 "ContentSummaryMaxLength": 255
}, },
"AIServiceConfiguration": { "AIServiceConfiguration": {
"Url": "https://localhost:6001/api/v1/ai", "Url": "https://localhost:6001/api/v1/ai",
"XPoweredValue": "SaherElmITCenter", "XPoweredValue": "SaherElmITCenter",
"DefaultClientTimeout": -1 "DefaultClientTimeout": -1
}, },
"LoggingServiceConfiguration": { "BotServiceConfiguration": {
"Enabled": true, "Token": "57317004:D2I9H0KWq2rTB44hHlZ7fOCa9oTgUU6RGIg",
"MinimumLevel": "Information", "BaseRoute": "https://tapi.bale.ai",
"Queue": { "SendAlertRoute": "/bot{xToken}/sendMessage"
"Enabled": true, },
"Capacity": 10000, "LoggingServiceConfiguration": {
"ShutdownTimeoutSeconds": 10 "Enabled": true,
}, "MinimumLevel": "Information",
"File": { "Queue": {
"Enabled": true, "Enabled": true,
"Format": "Json", "Capacity": 10000,
"Directory": "./Logs", "ShutdownTimeoutSeconds": 10
"FileName": "xApi-.log", },
"MinimumLevel": "Information", "File": {
"RetainedFileCountLimit": 30 "Enabled": true,
}, "Format": "Json",
"Database": { "Directory": "./Logs",
"Enabled": false, "FileName": "xApi-.log",
"TableName": "XLogs", "MinimumLevel": "Information",
"AutoCreateTable": true, "RetainedFileCountLimit": 30
"MinimumLevel": "Warning", },
"Provider": "Microsoft.Data.Sqlite", "Database": {
"ConnectionString": "Filename=./Db/XLogs.db" "Enabled": false,
}, "TableName": "XLogs",
"Event": { "AutoCreateTable": true,
"Enabled": false, "MinimumLevel": "Warning",
"Sender": "xApi", "Provider": "Microsoft.Data.Sqlite",
"MinimumLevel": "Error", "ConnectionString": "Filename=./Db/XLogs.db"
"Topic": "application-logs", },
"Action": "ApplicationLogCreated" "Event": {
} "Enabled": false,
}, "Sender": "xApi",
"Logging": { "MinimumLevel": "Error",
"LogLevel": { "Topic": "application-logs",
"Default": "Information", "Action": "ApplicationLogCreated"
"Microsoft": "Warning", }
"Microsoft.Hosting.Lifetime": "Information" },
} "Logging": {
}, "LogLevel": {
"AllowedHosts": "*" "Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*"
} }