From 6932f91599262691b8b49c07790b84a8392a5b01 Mon Sep 17 00:00:00 2001 From: Ismail Hamzah Date: Tue, 21 Jul 2026 17:01:59 +0700 Subject: [PATCH] update resource --- Presentation/ASPNET/appsettings.json | 1 + .../ASPNET/bin/Debug/net9.0/appsettings.json | 19 ++++++++++--------- docker-compose.yml | 8 ++++---- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/Presentation/ASPNET/appsettings.json b/Presentation/ASPNET/appsettings.json index f96f0e6..23e8929 100644 --- a/Presentation/ASPNET/appsettings.json +++ b/Presentation/ASPNET/appsettings.json @@ -1,6 +1,7 @@ { "ConnectionStrings": { "DefaultConnection": "Server=mssql,1433;Database=FREE-CRM;User Id=sa;Password=nw9703AZz6YmgB@G;TrustServerCertificate=True;" + //"DefaultConnection": "Server=localhost\\SQLEXPRESS;Database=FREE-CRM;Trusted_Connection=True;MultipleActiveResultSets=true;TrustServerCertificate=true" }, "DatabaseProvider": "SqlServer", "FileImageManager": { diff --git a/Presentation/ASPNET/bin/Debug/net9.0/appsettings.json b/Presentation/ASPNET/bin/Debug/net9.0/appsettings.json index 9c79d3f..f4e384d 100644 --- a/Presentation/ASPNET/bin/Debug/net9.0/appsettings.json +++ b/Presentation/ASPNET/bin/Debug/net9.0/appsettings.json @@ -1,6 +1,7 @@ { "ConnectionStrings": { - "DefaultConnection": "Server=localhost\\SQLEXPRESS;Database=FREE-CRM;User=dev;Password=dev;TrustServerCertificate=True;" + //"DefaultConnection": "Server=mssql,1433;Database=FREE-CRM;User Id=sa;Password=nw9703AZz6YmgB@G;TrustServerCertificate=True;" + "DefaultConnection": "Server=localhost\\SQLEXPRESS;Database=FREE-CRM;Trusted_Connection=True;MultipleActiveResultSets=true;TrustServerCertificate=true" }, "DatabaseProvider": "SqlServer", "FileImageManager": { @@ -28,7 +29,7 @@ "RequireUniqueEmail": true }, "SignIn": { - "RequireConfirmedEmail": true //confirmation will sent through email, make sure SMTP Config is OK. + "RequireConfirmedEmail": true }, "DefaultAdmin": { "Email": "admin@root.com", @@ -36,27 +37,27 @@ } }, "Jwt": { - "Key": "YourVeryStrongAndSecureSecretKeyWhichIs32Chars!", //minimum 32 char + "Key": "YourVeryStrongAndSecureSecretKeyWhichIs32Chars!", "Issuer": "YourIssuer", "Audience": "YourAudience", "ExpireInMinute": 30, "ClockSkewInMinute": 0 }, "SmtpSettings": { - "Host": "xxx.gmail.com", + "Host": "smtp.gmail.com", "Port": 465, - "UserName": "xxx@gmail.com", - "Password": "xxx", //if use smtp.gmail.com, use the GMAIL app password, not your email password. https://support.google.com/mail/answer/185833?hl=en - "FromAddress": "xxx@gmail.com", + "UserName": "go2ismail@gmail.com", + "Password": "lrbi cooi gcnt oquw", + "FromAddress": "go2ismail@gmail.com", "FromName": "INDOTALENT" }, "IsDemoVersion": true, "Kestrel": { "Endpoints": { "Http": { - "Url": "http://localhost:5000" + "Url": "http://+:8080" } } }, "AllowedHosts": "*" -} +} \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index e61ab70..3f7ecb6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -28,10 +28,10 @@ services: - SmtpSettings__Password=lrbi cooi gcnt oquw - SmtpSettings__FromAddress=go2ismail@gmail.com - SmtpSettings__FromName=INDOTALENT - # RESOURCE LIMITS - mem_limit: 512m - mem_reservation: 256m - cpus: '0.5' + # RESOURCE LIMITS - Upgrade untuk Super Admin + mem_limit: 2g + mem_reservation: 2g + cpus: '1.0' labels: - "indotalent.service=free-crm" - "indotalent.description=FREE-CRM ASP.NET Core .NET 9"