update Bot Configurations ...
This commit is contained in:
+225
-223
@@ -1,225 +1,227 @@
|
|||||||
{
|
{
|
||||||
"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
|
||||||
},
|
},
|
||||||
"BotServiceConfiguration": {
|
"BotServiceConfiguration": {
|
||||||
"Token": "57317004:D2I9H0KWq2rTB44hHlZ7fOCa9oTgUU6RGIg",
|
"VerificationCodeTTL": 300,
|
||||||
"BaseRoute": "https://tapi.bale.ai",
|
"DefaultClientTimeout": 360,
|
||||||
"SendAlertRoute": "/bot{xToken}/sendMessage"
|
"VerificationCodeLength": 6,
|
||||||
},
|
"BaseRoute": "https://tapi.bale.ai",
|
||||||
"LoggingServiceConfiguration": {
|
"Token": "57317004:D2I9H0KWq2rTB44hHlZ7fOCa9oTgUU6RGIg"
|
||||||
"Enabled": true,
|
},
|
||||||
"MinimumLevel": "Information",
|
"LoggingServiceConfiguration": {
|
||||||
"Queue": {
|
"Enabled": true,
|
||||||
"Enabled": true,
|
"MinimumLevel": "Information",
|
||||||
"Capacity": 10000,
|
"Queue": {
|
||||||
"ShutdownTimeoutSeconds": 10
|
"Enabled": true,
|
||||||
},
|
"Capacity": 10000,
|
||||||
"File": {
|
"ShutdownTimeoutSeconds": 10
|
||||||
"Enabled": true,
|
},
|
||||||
"Format": "Json",
|
"File": {
|
||||||
"Directory": "./Logs",
|
"Enabled": true,
|
||||||
"FileName": "xApi-.log",
|
"Format": "Json",
|
||||||
"MinimumLevel": "Information",
|
"Directory": "./Logs",
|
||||||
"RetainedFileCountLimit": 30
|
"FileName": "xApi-.log",
|
||||||
},
|
"MinimumLevel": "Information",
|
||||||
"Database": {
|
"RetainedFileCountLimit": 30
|
||||||
"Enabled": false,
|
},
|
||||||
"TableName": "XLogs",
|
"Database": {
|
||||||
"AutoCreateTable": true,
|
"Enabled": false,
|
||||||
"MinimumLevel": "Warning",
|
"TableName": "XLogs",
|
||||||
"Provider": "Microsoft.Data.Sqlite",
|
"AutoCreateTable": true,
|
||||||
"ConnectionString": "Filename=./Db/XLogs.db"
|
"MinimumLevel": "Warning",
|
||||||
},
|
"Provider": "Microsoft.Data.Sqlite",
|
||||||
"Event": {
|
"ConnectionString": "Filename=./Db/XLogs.db"
|
||||||
"Enabled": false,
|
},
|
||||||
"Sender": "xApi",
|
"Event": {
|
||||||
"MinimumLevel": "Error",
|
"Enabled": false,
|
||||||
"Topic": "application-logs",
|
"Sender": "xApi",
|
||||||
"Action": "ApplicationLogCreated"
|
"MinimumLevel": "Error",
|
||||||
}
|
"Topic": "application-logs",
|
||||||
},
|
"Action": "ApplicationLogCreated"
|
||||||
"Logging": {
|
}
|
||||||
"LogLevel": {
|
},
|
||||||
"Default": "Information",
|
"Logging": {
|
||||||
"Microsoft": "Warning",
|
"LogLevel": {
|
||||||
"Microsoft.Hosting.Lifetime": "Information"
|
"Default": "Information",
|
||||||
}
|
"Microsoft": "Warning",
|
||||||
},
|
"Microsoft.Hosting.Lifetime": "Information"
|
||||||
"AllowedHosts": "*"
|
}
|
||||||
|
},
|
||||||
|
"AllowedHosts": "*"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user