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.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Remove unused appsettings keys and align admin panel appsettings (#871)
Krzysztof Pajakc70372ead43b
diff --git a/src/Core/Grand.Infrastructure/Configuration/BackendAPIConfig.cs b/src/Core/Grand.Infrastructure/Configuration/BackendAPIConfig.csindex 64879fe7d..ef6ff8a53 100644--- a/src/Core/Grand.Infrastructure/Configuration/BackendAPIConfig.cs+++ b/src/Core/Grand.Infrastructure/Configuration/BackendAPIConfig.cs@@ -8,8 +8,5 @@ public class BackendAPIConfigpublic string ValidIssuer { get; set; }public bool ValidateAudience { get; set; }public string ValidAudience { get; set; }- public bool ValidateLifetime { get; set; }- public bool ValidateIssuerSigningKey { get; set; }public int ExpiryInMinutes { get; set; }- public bool SystemModel { get; set; }}\ No newline at end of filediff --git a/src/Web/Grand.Web.Admin/App_Data/appsettings.json b/src/Web/Grand.Web.Admin/App_Data/appsettings.jsonindex 9bbe5b436..1abc58011 100644--- a/src/Web/Grand.Web.Admin/App_Data/appsettings.json+++ b/src/Web/Grand.Web.Admin/App_Data/appsettings.json@@ -4,6 +4,10 @@"DisplayFullErrorStack": true,//Value of "Cache-Control" header value for static content"StaticFilesCacheControl": "public,max-age=31536000",+ //Directory for files written at runtime: custom css/js, uploaded images, thumbnails, sitemap*.xml,+ //firebase-messaging-sw.js. Empty keeps them in wwwroot. When running more than one instance (pods),+ //set it to a shared volume mounted on every instance. A relative path is resolved against the application directory.+ "MediaPath": "",//Enable the session-based TempData provider"UseSessionStateTempDataProvider": false,//A value indicating whether SEO friendly URLs with multiple languages are enabled@@ -79,6 +83,12 @@"CookieSameSiteExternalAuth": "None",//Enabling this setting allows for verification of access to a specific controller and action in the admin panel using menu configuration."AuthorizeAdminMenu": false,+ //Server-side secret ("pepper") mixed into the PBKDF2 password hash. Keep it OUT of the database (here or in a secret store).+ //Optional but recommended. IMPORTANT: changing it invalidates existing PBKDF2 hashes (those customers must reset their password);+ //legacy SHA hashes are not affected. Set it once, before going live. Empty = hash without a pepper.+ "PasswordHashKey": "",+ //PBKDF2 (HMAC-SHA256) iteration count for new/upgraded password hashes. Default 210000 (OWASP). Embedded per-hash, so it can be raised safely later.+ "PasswordHashIterations": 210000,//Hosts whose iframes survive sanitization of rich-text content (product descriptions, blog posts, pages).//An iframe pointing anywhere else is removed, because its src is otherwise attacker-controlled. A leading "*." matches any subdomain.//Remove the key entirely to use the built-in video-embed defaults (youtube, youtube-nocookie, vimeo, google); set it to [] to block every iframe.@@ -104,8 +114,6 @@"DisableUploadExtensions": false,//A list of plugins to be ignored during start application - pattern"PluginSkipLoadingPattern": "",- //Enable if you want to clear /Plugins/bin directory on application startup- "ClearPluginShadowDirectoryOnStartup": true,//For develop you should enable if you want to copy plugin dll files to directory /Plugins/bin on application startup"PluginShadowCopy": true,//separator commadiff --git a/src/Web/Grand.Web.Store/App_Data/appsettings.json b/src/Web/Grand.Web.Store/App_Data/appsettings.jsonindex 3a468b3fc..be8f462ca 100644--- a/src/Web/Grand.Web.Store/App_Data/appsettings.json+++ b/src/Web/Grand.Web.Store/App_Data/appsettings.json@@ -4,6 +4,10 @@"DisplayFullErrorStack": true,//Value of "Cache-Control" header value for static content"StaticFilesCacheControl": "public,max-age=31536000",+ //Directory for files written at runtime: custom css/js, uploaded images, thumbnails, sitemap*.xml,+ //firebase-messaging-sw.js. Empty keeps them in wwwroot. When running more than one instance (pods),+ //set it to a shared volume mounted on every instance. A relative path is resolved against the application directory.+ "MediaPath": "",//Enable the session-based TempData provider"UseSessionStateTempDataProvider": false,//A value indicating whether SEO friendly URLs with multiple languages are enabled@@ -79,6 +83,12 @@"CookieSameSiteExternalAuth": "None",//Enabling this setting allows for verification of access to a specific controller and action in the admin panel using menu configuration."AuthorizeAdminMenu": false,+ //Server-side secret ("pepper") mixed into the PBKDF2 password hash. Keep it OUT of the database (here or in a secret store).+ //Optional but recommended. IMPORTANT: changing it invalidates existing PBKDF2 hashes (those customers must reset their password);+ //legacy SHA hashes are not affected. Set it once, before going live. Empty = hash without a pepper.+ "PasswordHashKey": "",+ //PBKDF2 (HMAC-SHA256) iteration count for new/upgraded password hashes. Default 210000 (OWASP). Embedded per-hash, so it can be raised safely later.+ "PasswordHashIterations": 210000,//Hosts whose iframes survive sanitization of rich-text content (product descriptions, blog posts, pages).//An iframe pointing anywhere else is removed, because its src is otherwise attacker-controlled. A leading "*." matches any subdomain.//Remove the key entirely to use the built-in video-embed defaults (youtube, youtube-nocookie, vimeo, google); set it to [] to block every iframe.@@ -104,8 +114,6 @@"DisableUploadExtensions": false,//A list of plugins to be ignored during start application - pattern"PluginSkipLoadingPattern": "",- //Enable if you want to clear /Plugins/bin directory on application startup- "ClearPluginShadowDirectoryOnStartup": true,//For develop you should enable if you want to copy plugin dll files to directory /Plugins/bin on application startup"PluginShadowCopy": true,//separator commadiff --git a/src/Web/Grand.Web.Vendor/App_Data/appsettings.json b/src/Web/Grand.Web.Vendor/App_Data/appsettings.jsonindex 9bbe5b436..1abc58011 100644--- a/src/Web/Grand.Web.Vendor/App_Data/appsettings.json+++ b/src/Web/Grand.Web.Vendor/App_Data/appsettings.json@@ -4,6 +4,10 @@"DisplayFullErrorStack": true,//Value of "Cache-Control" header value for static content"StaticFilesCacheControl": "public,max-age=31536000",+ //Directory for files written at runtime: custom css/js, uploaded images, thumbnails, sitemap*.xml,+ //firebase-messaging-sw.js. Empty keeps them in wwwroot. When running more than one instance (pods),+ //set it to a shared volume mounted on every instance. A relative path is resolved against the application directory.+ "MediaPath": "",//Enable the session-based TempData provider"UseSessionStateTempDataProvider": false,//A value indicating whether SEO friendly URLs with multiple languages are enabled@@ -79,6 +83,12 @@"CookieSameSiteExternalAuth": "None",//Enabling this setting allows for verification of access to a specific controller and action in the admin panel using menu configuration."AuthorizeAdminMenu": false,+ //Server-side secret ("pepper") mixed into the PBKDF2 password hash. Keep it OUT of the database (here or in a secret store).+ //Optional but recommended. IMPORTANT: changing it invalidates existing PBKDF2 hashes (those customers must reset their password);+ //legacy SHA hashes are not affected. Set it once, before going live. Empty = hash without a pepper.+ "PasswordHashKey": "",+ //PBKDF2 (HMAC-SHA256) iteration count for new/upgraded password hashes. Default 210000 (OWASP). Embedded per-hash, so it can be raised safely later.+ "PasswordHashIterations": 210000,//Hosts whose iframes survive sanitization of rich-text content (product descriptions, blog posts, pages).//An iframe pointing anywhere else is removed, because its src is otherwise attacker-controlled. A leading "*." matches any subdomain.//Remove the key entirely to use the built-in video-embed defaults (youtube, youtube-nocookie, vimeo, google); set it to [] to block every iframe.@@ -104,8 +114,6 @@"DisableUploadExtensions": false,//A list of plugins to be ignored during start application - pattern"PluginSkipLoadingPattern": "",- //Enable if you want to clear /Plugins/bin directory on application startup- "ClearPluginShadowDirectoryOnStartup": true,//For develop you should enable if you want to copy plugin dll files to directory /Plugins/bin on application startup"PluginShadowCopy": true,//separator commadiff --git a/src/Web/Grand.Web/App_Data/appsettings.json b/src/Web/Grand.Web/App_Data/appsettings.jsonindex 979044712..f10b7518b 100644--- a/src/Web/Grand.Web/App_Data/appsettings.json+++ b/src/Web/Grand.Web/App_Data/appsettings.json@@ -125,8 +125,6 @@"DisableUploadExtensions": false,//A list of plugins to be ignored during start application - pattern"PluginSkipLoadingPattern": "",- //Enable if you want to clear /Plugins/bin directory on application startup- "ClearPluginShadowDirectoryOnStartup": true,//For develop you should enable if you want to copy plugin dll files to directory /Plugins/bin on application startup"PluginShadowCopy": true,//separator comma@@ -240,11 +238,7 @@"ValidIssuer": "","ValidateAudience": false,"ValidAudience": "",- "ValidateLifetime": true,- "ValidateIssuerSigningKey": true,- "ExpiryInMinutes": 1440,- //generate system model- "SystemModel": true+ "ExpiryInMinutes": 1440},"Logging": {"LogLevel": {