From def3b94d89ca3e21d0da85c704d4a1a81c07041f Mon Sep 17 00:00:00 2001 From: masoodafar-web Date: Mon, 23 Feb 2026 23:59:41 +0330 Subject: [PATCH] =?UTF-8?q?fix:=20update=20appsettings=20for=20production?= =?UTF-8?q?=20environment=20=E2=80=94=20adjust=20URLs=20and=20connection?= =?UTF-8?q?=20strings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 6 ++-- src/CMSMicroservice.WebApi/appsettings.json | 35 +++++++++++---------- 2 files changed, 22 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index 3a644bf..2d983c4 100644 --- a/.gitignore +++ b/.gitignore @@ -494,6 +494,6 @@ fabric.properties /src/.idea # Environment-specific configuration files with sensitive data -**/appsettings.Staging.json -**/appsettings.Production.json -**/appsettings.*.local.json +# **/appsettings.Staging.json +# **/appsettings.Production.json +# **/appsettings.*.local.json diff --git a/src/CMSMicroservice.WebApi/appsettings.json b/src/CMSMicroservice.WebApi/appsettings.json index 648f6fa..411dade 100644 --- a/src/CMSMicroservice.WebApi/appsettings.json +++ b/src/CMSMicroservice.WebApi/appsettings.json @@ -2,24 +2,16 @@ "PaymentProvider": "zarinpal", "ZarinPal": { "MerchantId": "4225d555-5fa9-4df0-9b61-1ce152cbbba8", - "UseSandbox": true - }, - "CmsBaseUrl": "https://cms.kbs1.ir", - "FrontOfficeBaseUrl": "https://foursat.kbs1.ir", - "FMS": { - "Address": "https://dl.afrino.co" + "UseSandbox": false }, + "CmsBaseUrl": "https://cms.kbs2.ir", + "FrontOfficeBaseUrl": "https://kbs2.ir", "JwtSecurityKey": "TvlZVx5TJaHs8e9HgUdGzhGP2CIidoI444nAj+8+g7c=", "JwtIssuer": "https://localhost", "JwtAudience": "https://localhost", "JwtExpiryInDays": 5, - "Kestrel": { - "EndpointDefaults": { - "Protocols": "Http1AndHttp2" - } - }, "ConnectionStrings": { - "DefaultConnection": "Data Source=45.149.79.127,31433; Initial Catalog=KBS;User ID=sa;Password=YourStrong@Passw0rd;Connection Timeout=300000;MultipleActiveResultSets=True;Encrypt=False", + "DefaultConnection": "Server=mssql-svc;Database=KBS;User Id=sa;Password=YourStrong@Passw0rd;TrustServerCertificate=True;", "providerName": "System.Data.SqlClient" }, "Otp": { @@ -51,8 +43,8 @@ "Sms": { "Enabled": true, "Provider": "Kavenegar", - "KavenegarApiKey": "YOUR_KAVENEGAR_API_KEY", - "Sender": "10008663" + "KavenegarApiKey": "497263626F32626A48685A6137524C4F78575A766E4C74694A556B79317648424964655030682B554545413D", + "Sender": "1000001110100" }, "DayaPayment": { "BaseUrl": "https://api.daya.ir", @@ -71,7 +63,7 @@ }, "BackgroundJobs": { "WeeklyCommissionCalculation": { - "Enabled": true, + "Enabled": false, "CronExpression": "5 0 * * 0" } }, @@ -81,12 +73,23 @@ } }, "AllowedHosts": "*", + "Kestrel": { + "EndpointDefaults": { + "Protocols": "Http2" + } + }, "Authentication": { "Authority": "https://ids.domain.com/", "Audience": "domain_api" }, "Seq": { - "ServerUrl": "https://seq.afrino.co", + "ServerUrl": "http://seq-svc:5341", "ApiKey": "oxpvpUzU1pZxMS4s3Fqq" + }, + "Logging": { + "LogLevel": { + "Default": "Warning", + "Microsoft.AspNetCore": "Warning" + } } }