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.

1.9 KB
Raw Blame
namespace Grand.Infrastructure.Configuration;

/// <summary>
///     Represents a Application Config
/// </summary>
public class AppConfig
{
    /// <summary>
    ///     A value indicating whether SEO friendly URLs with multiple languages are enabled
    /// </summary>
    public bool SeoFriendlyUrlsForLanguagesEnabled { get; set; }

    public string SeoFriendlyUrlsDefaultCode { get; set; } = "en";

    /// <summary>
    ///     Gets or sets a value of "Cache-Control" header value for static content
    /// </summary>
    public string StaticFilesCacheControl { get; set; }

    /// <summary>
    ///     Gets or sets a value indicating whether to display the full error in production environment.
    ///     It's ignored (always enabled) in development environment
    /// </summary>
    public bool DisplayFullErrorStack { get; set; }

    public bool UseSessionStateTempDataProvider { get; set; }

    /// <summary>
    ///     Gets or sets a value custom response header encoding may be needed in some cases
    /// </summary>
    public bool AllowNonAsciiCharInHeaders { get; set; }

    /// <summary>
    ///     Gets or sets the maximum allowed size of any request body in bytes
    /// </summary>
    public long? MaxRequestBodySize { get; set; }

    /// <summary>
    ///     Gets or sets the value to enable a middleware for logging additional information about CurrentCustomer and store
    /// </summary>
    public bool EnableContextLoggingMiddleware { get; set; }

    /// <summary>
    ///     Gets or sets the directory for files the application writes at runtime (custom css/js, uploaded images,
    ///     thumbnails, sitemap xml files). Empty keeps them in wwwroot. With more than one instance, point every
    ///     instance at the same shared volume. A relative path is resolved against the content root.
    /// </summary>
    public string MediaPath { get; set; }
}