From fce194a1958a997602e52087ca6b66a5e5cda50d Mon Sep 17 00:00:00 2001 From: masoodafar-web Date: Sat, 27 Dec 2025 00:16:36 +0330 Subject: [PATCH] feat: update connection strings and add production configuration - Modified database connection details and created appsettings.Production.json for production environment --- .../appsettings.Production.json | 72 +++++++++++++++++++ src/CMSMicroservice.WebApi/appsettings.json | 10 +-- 2 files changed, 77 insertions(+), 5 deletions(-) create mode 100644 src/CMSMicroservice.WebApi/appsettings.Production.json diff --git a/src/CMSMicroservice.WebApi/appsettings.Production.json b/src/CMSMicroservice.WebApi/appsettings.Production.json new file mode 100644 index 0000000..5ff993e --- /dev/null +++ b/src/CMSMicroservice.WebApi/appsettings.Production.json @@ -0,0 +1,72 @@ +{ + "UseRealPaymentGateway": false, + "JwtSecurityKey": "TvlZVx5TJaHs8e9HgUdGzhGP2CIidoI444nAj+8+g7c=", + "JwtIssuer": "https://localhost", + "JwtAudience": "https://localhost", + "JwtExpiryInDays": 5, + "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", + "providerName": "System.Data.SqlClient" + }, + "Otp": { + "Secret": "K2w8k1h1mH2Qz1kqWk0c8kQ2Pq8q9H1eE2nqN1qQ8x7M=" + }, + "Monitoring": { + "SentryEnabled": false, + "SentryDsn": "", + "SlackEnabled": false, + "SlackWebhookUrl": "", + "EmailAlertsEnabled": false, + "AdminEmails": [ + "admin@example.com" + ], + "SmsNotificationsEnabled": false, + "SmsApiKey": "", + "SmsGatewayUrl": "" + }, + "Email": { + "Enabled": true, + "SmtpHost": "smtp.gmail.com", + "SmtpPort": 587, + "SmtpUsername": "your-email@gmail.com", + "SmtpPassword": "your-app-password", + "FromEmail": "noreply@foursat.com", + "FromName": "FourSat CMS", + "EnableSsl": true + }, + "Sms": { + "Enabled": true, + "Provider": "Kavenegar", + "KavenegarApiKey": "YOUR_KAVENEGAR_API_KEY", + "Sender": "10008663" + }, + "DayaPayment": { + "BaseUrl": "https://api.daya.ir", + "ApiKey": "YOUR_DAYA_API_KEY" + }, + "DayaApi": { + "UseMock": false, + "BaseAddress": "https://Dayadiamond.ir", + "MerchantPermissionKey": "56146364$04sXjethI5WxhItR1Q9xnmFdJzl2BB8Bclsq8dAy7YVSZp3vtt-wP7ivrcCvmKLq", + "CacheDurationMinutes": 20 + }, + "Chatika": { + "Enabled": true, + "BaseUrl": "https://api.chatika.ir", + "ApiKey": "tIukvL8dnV4cB3yVWcCD9Xyfbj8rBxm5wPt2mLyJCgTsBBoMTWjt6mFEqQwpw-er" + }, + "AllowedHosts": "*", + "Kestrel": { + "EndpointDefaults": { + "Protocols": "Http2" + } + }, + "Authentication": { + "Authority": "https://ids.domain.com/", + "Audience": "domain_api" + }, + "Seq": { + "ServerUrl": "https://seq.afrino.co", + "ApiKey": "oxpvpUzU1pZxMS4s3Fqq" + } +} diff --git a/src/CMSMicroservice.WebApi/appsettings.json b/src/CMSMicroservice.WebApi/appsettings.json index 8c19306..5ff993e 100644 --- a/src/CMSMicroservice.WebApi/appsettings.json +++ b/src/CMSMicroservice.WebApi/appsettings.json @@ -5,7 +5,7 @@ "JwtAudience": "https://localhost", "JwtExpiryInDays": 5, "ConnectionStrings": { - "DefaultConnection": "Data Source=194.5.195.53,31433; Initial Catalog=Foursat;User ID=sa;Password=87zH26nbqT;Connection Timeout=300000;MultipleActiveResultSets=True;Encrypt=False", + "DefaultConnection": "Data Source=45.149.79.127,31433; Initial Catalog=KBS;User ID=sa;Password=YourStrong@Passw0rd;Connection Timeout=300000;MultipleActiveResultSets=True;Encrypt=False", "providerName": "System.Data.SqlClient" }, "Otp": { @@ -13,12 +13,12 @@ }, "Monitoring": { "SentryEnabled": false, - "SentryDsn": "", + "SentryDsn": "", "SlackEnabled": false, "SlackWebhookUrl": "", "EmailAlertsEnabled": false, "AdminEmails": [ - "admin@example.com" + "admin@example.com" ], "SmsNotificationsEnabled": false, "SmsApiKey": "", @@ -37,8 +37,8 @@ "Sms": { "Enabled": true, "Provider": "Kavenegar", - "KavenegarApiKey": "497263626F32626A48685A6137524C4F78575A766E4C74694A556B79317648424964655030682B554545413D", - "Sender": "1000001110100" + "KavenegarApiKey": "YOUR_KAVENEGAR_API_KEY", + "Sender": "10008663" }, "DayaPayment": { "BaseUrl": "https://api.daya.ir",