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.

10.2 KB
Raw Blame
{
  "Application": {
    //Enable if you want to see the full error in production environment. It's ignored (always enabled) in development environment
    "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
    "SeoFriendlyUrlsForLanguagesEnabled": false,
    "SeoFriendlyUrlsDefaultCode": "en",
    //Note: While use of custom response header encoding may be needed in some cases, 
    //we discourage the use of non-ASCII encodings to avoid compatibility issues 
    //with other HTTP clients.
    "AllowNonAsciiCharInHeaders": false,
    //Gets or sets the maximum allowed size of any request body in bytes
    //the default value is 30MB
    "MaxRequestBodySize": null,
    //max 2147483648

    //Gets or sets the value to enable a middleware for logging additional information about CurrentCustomer and CurrentStore
    "EnableContextLoggingMiddleware": true
  },
  "Customer": {
    //Scope customer accounts per store. Must match the value used by the storefront (Grand.Web).
    //false (default): the e-mail/username is a GLOBAL unique key across the whole installation.
    //true: the uniqueness key becomes (e-mail/username + StoreId) - the same e-mail can be registered independently per store.
    "RegisterCustomersPerStore": false
  },
  //only for advanced users, allow to set ConnectionString for MongoDb
  "ConnectionStrings": {
    "Mongodb": ""
  },
  "Database": {
    //This setting is required to use LiteDB database
    "UseLiteDb": false,
    //LiteDB database as a singleton service in the application
    "Singleton": true,
    //Init connection string - it's required only for the installation process!
    "LiteDbConnectionString": "Filename=App_Data/database.db"
  },
  "Security": {
    //Use a reverse proxy server - more information you can find at: https://docs.microsoft.com/en-US/aspnet/core/host-and-deploy/linux-nginx
    "UseForwardedHeaders": false,
    //In some cases, it might not be possible to add forwarded headers to the requests proxied to the app. 
    "ForceUseHTTPS": false,
    //AllowedHosts, is used for host filtering to bind your app to specific hostnames
    "AllowedHosts": "*",
    //This settings adds the following headers to all responses that pass
    //X-Content-Type-Options: nosniff
    //Strict-Transport-Security: max-age=31536000; includeSubDomains
    //X-Frame-Options: Deny
    //X-XSS-Protection: 1; mode=block
    //Referrer-Policy: strict-origin-when-cross-origin
    //Content-Security-Policy: object-src 'none'; form-action 'self'; frame-ancestors 'none'
    "UseDefaultSecurityHeaders": false,
    //HTTP Strict Transport Security Protocol
    "UseHsts": false,
    //We recommend all ASP.NET Core web apps call HTTPS Redirection Middleware to redirect all HTTP requests to HTTPS
    "UseHttpsRedirection": false,
    "HttpsRedirectionRedirect": 308,
    "HttpsRedirectionHttpsPort": 443,
    //Key persistence location you can point to a directory on the local machine, or it can point to a folder on a network share.
    //if is null it will use the default directory path - ApplicationPath\App_Data\DataProtectionKeys
    "KeyPersistenceLocation": "",
    //Gets or sets a value indicating for cookie auth expires in hours - default 24 * 365 = 8760
    "CookieAuthExpires": 8760,
    //Gets or sets a value for cookie prefix - any changes will log out all of the customers
    "CookiePrefix": ".Grand.",
    //Gets or sets a value for cookie claim issuer - any changes will log out all of the customers
    "CookieClaimsIssuer": "grandnode",
    //CookieSecurePolicy.Always always sets the Secure flag
    //Always setting the Secure flag is the most restrictive and most secure option. 
    //This is the one you should be targeting if your production environment fully runs on HTTPS
    "CookieSecurePolicyAlways": false,
    //Controls whether or not a cookie is sent with cross-site requests, providing some protection against cross-site request forgery attacks
    //Available values Unspecified, None, Lax, Strict
    "CookieSameSite": "Lax",
    "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.
    "SanitizerAllowedIframeHosts": [ "youtube.com", "*.youtube.com", "youtube-nocookie.com", "*.youtube-nocookie.com", "vimeo.com", "*.vimeo.com", "google.com", "*.google.com" ],
    //Internal-network hosts that picture URLs in Excel imports (products, brands, categories, collections) may point to.
    //Any other host must resolve to a public address, because the URL is written by whoever prepared the import file.
    //A listed host may also use a port other than 80/443. A leading "*." matches any subdomain, e.g. [ "images.company.local", "192.168.1.50" ].
    "PictureImportAllowedPrivateHosts": [],
    //Operational escape hatch, not a security setting: when [SanitizeHtml]/[NoHtml] wrongly reject legitimate
    //content in production, set this to false to accept input unsanitized while a fix is prepared, then set it
    //back to true as soon as possible. Default true.
    "EnableHtmlSanitization": true
  },
  "Cache": {
    //Gets or sets a value indicating for default cache time in minutes"
    "DefaultCacheTimeMinutes": 60
  },
  "Extensions": {
    //For developers - more info you can find at https://docs.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/
    //https://github.com/dotnet/roslyn/wiki/Roslyn-Overview
    "UseRoslynScripts": false,
    //Disable upload extensions plugins
    "DisableUploadExtensions": false,
    //A list of plugins to be ignored during start application - pattern
    "PluginSkipLoadingPattern": "",
    //For develop you should enable if you want to copy plugin dll files to directory /Plugins/bin on application startup
    "PluginShadowCopy": true,
    //separator comma
    "InstalledPlugins": ""
  },
  "AccessControl": {
    /// A value indicating whether to ignore ACL rules 
    "IgnoreAcl": false,
    //A value indicating whether to ignore "limit per store" rules
    "IgnoreStoreLimitations": false
  },
  "Performance": {
    //Indicates whether to compress response (gzip by default)
    //You may want to disable it, for example, If you have an active IIS Dynamic Compression Module configured at the server level
    "UseResponseCompression": false,
    //Indicates whether to ignore UsePoweredByMiddleware
    "IgnoreUsePoweredByMiddleware": false
  },
  "FeatureManagement": {
    "Grand.Module.Installer": false,
    "Grand.Module.Migration": false,
    "Grand.Module.ScheduledTasks": false,
    "Grand.Module.Api": false
  },
  "Redis": {
    ///Enable the Publish/Subscribe messaging with redis to manage memory cache on every server
    "RedisPubSubEnabled": false,
    "RedisPubSubConnectionString": "127.0.0.1:6379,allowAdmin=true",
    "RedisPubSubChannel": "channel",
    "PersistKeysToRedis": false,
    "PersistKeysToRedisUrl": "127.0.0.1:6379,allowAdmin=true,defaultDatabase=1"
  },
  "UrlRewrite": {
    //Load url rewrite rules from external file AppData/UrlRewrite.xml
    "UseUrlRewrite": false,
    "UrlRewriteHttpsOptions": false,
    "UrlRewriteHttpsOptionsStatusCode": 303,
    "UrlRewriteHttpsOptionsPort": 443,
    "UrlRedirectToHttpsPermanent": false
  },
  "Azure": {
    //Azure BLOB storage.
    //Specify your connection string, container name, end point for BLOB storage here
    "AzureBlobStorageConnectionString": "",
    "AzureBlobStorageContainerName": "",
    "AzureBlobStorageEndPoint": "",
    //DataProtection - Azure Key Vault - you can use only one of method PersistKeysToAzureKeyVault or PersistKeysToAzureBlobStorage
    "PersistKeysAzureBlobStorageConnectionString": "",
    //required 
    "PersistKeysToAzureKeyVault": false,
    "PersistKeysToAzureBlobStorage": false,
    "DataProtectionContainerName": "",
    //required 
    "DataProtectionBlobName": "keys.xml",
    //required 
    "KeyIdentifier": "",
    //required when use PersistKeysToAzureKeyVault

    //Azure App Configuration
    "AppConfiguration": "",
    "AppKeyPrefix": ""
  },
  "Amazon": {
    //Amazon Blob storage
    //<!--Available Region System Names can be found here http://docs.aws.amazon.com/general/latest/gr/rande.html#apigateway_region -->
    "AmazonAwsAccessKeyId": "",
    "AmazonAwsSecretAccessKey": "",
    "AmazonBucketName": "",
    "AmazonRegion": "",
    "AmazonDistributionDomainName": ""
    //Domain name for cloudfront distribution
  },
  "FacebookSettings": {
    //Facebook-assigned App ID
    "AppId": "",
    //Facebook-assigned app secret
    "AppSecret": ""
  },
  "GoogleSettings": {
    "ClientId": "",
    "ClientSecret": ""
  },
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "System": "Information"
    }
  },
  "ApplicationInsights": {
    "ConnectionString": ""
  }
}