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