Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Update default values for appsettings

KrzysztofPajak841b50b24907
diff --git a/src/Web/Grand.Web/App_Data/appsettings.json b/src/Web/Grand.Web/App_Data/appsettings.json
index 10cb0eddf..eaa5217f1 100644
--- a/src/Web/Grand.Web/App_Data/appsettings.json
+++ b/src/Web/Grand.Web/App_Data/appsettings.json
@@ -111,7 +111,7 @@
"CookieSecurePolicyAlways": false,
//Gets or sets a value indicating whether mini profiler should be displayed in public store (used for debugging)
- "DisplayMiniProfilerInPublicStore": true,
+ "DisplayMiniProfilerInPublicStore": false,
"AllowNonAsciiCharInHeaders": true,
@@ -155,10 +155,10 @@
//(Serilog) Request logging - The package includes middleware for smarter HTTP request logging.
"UseSerilogRequestLogging": false
},
-
+ //access to the api to web controllers
"GrandWebApi": {
- "Enabled": true,
- "SecretKey": "your private secret key",
+ "Enabled": false,
+ "SecretKey": "your private secret key", //at least 16 characters
"ValidateIssuer": false,
"ValidIssuer": "",
"ValidateAudience": false,
@@ -166,13 +166,13 @@
"ValidateLifetime": true,
"ValidateIssuerSigningKey": true,
"ExpiryInMinutes": 1440,
- "RefreshTokenExpiryInMinutes":2000
+ "RefreshTokenExpiryInMinutes": 1440
},
-
+ //api for admin
"Api": {
"Enabled": true,
"UseSwagger": true,
- "SecretKey": "your private secret key",
+ "SecretKey": "your private secret key", //at least 16 characters
"ValidateIssuer": false,
"ValidIssuer": "",
"ValidateAudience": false,