* Add CSP Header Check * Update src/Umbraco.Core/EmbeddedResources/Lang/en.xml Co-authored-by: Laura Neto <12862535+lauraneto@users.noreply.github.com> * Update src/Umbraco.Core/EmbeddedResources/Lang/en_us.xml Co-authored-by: Laura Neto <12862535+lauraneto@users.noreply.github.com> --------- Co-authored-by: Laura Neto <12862535+lauraneto@users.noreply.github.com>
67 lines
3.0 KiB
C#
67 lines
3.0 KiB
C#
namespace Umbraco.Cms.Core;
|
|
|
|
/// <summary>
|
|
/// Defines constants.
|
|
/// </summary>
|
|
public static partial class Constants
|
|
{
|
|
/// <summary>
|
|
/// Defines constants for ModelsBuilder.
|
|
/// </summary>
|
|
public static class HealthChecks
|
|
{
|
|
public static class RoutePath
|
|
{
|
|
public const string HealthCheck = "health-check";
|
|
}
|
|
|
|
public static class DocumentationLinks
|
|
{
|
|
public const string SmtpCheck = "https://umbra.co/healthchecks-smtp";
|
|
|
|
public static class LiveEnvironment
|
|
{
|
|
public const string CompilationDebugCheck = "https://umbra.co/healthchecks-compilation-debug";
|
|
public const string RuntimeModeCheck = "https://docs.umbraco.com/umbraco-cms/fundamentals/setup/server-setup/runtime-modes";
|
|
}
|
|
|
|
public static class Configuration
|
|
{
|
|
public const string TrySkipIisCustomErrorsCheck =
|
|
"https://umbra.co/healthchecks-skip-iis-custom-errors";
|
|
|
|
public const string NotificationEmailCheck = "https://umbra.co/healthchecks-notification-email";
|
|
}
|
|
|
|
public static class FolderAndFilePermissionsCheck
|
|
{
|
|
public const string FileWriting = "https://umbra.co/healthchecks-file-writing";
|
|
public const string FolderCreation = "https://umbra.co/healthchecks-folder-creation";
|
|
public const string FileWritingForPackages = "https://umbra.co/healthchecks-file-writing-for-packages";
|
|
public const string MediaFolderCreation = "https://umbra.co/healthchecks-media-folder-creation";
|
|
}
|
|
|
|
public static class Security
|
|
{
|
|
public const string UmbracoApplicationUrlCheck =
|
|
"https://umbra.co/healthchecks-umbraco-application-url";
|
|
|
|
public const string ClickJackingCheck = "https://umbra.co/healthchecks-click-jacking";
|
|
public const string HstsCheck = "https://umbra.co/healthchecks-hsts";
|
|
public const string NoSniffCheck = "https://umbra.co/healthchecks-no-sniff";
|
|
[Obsolete("This link is not used anymore in the XSS protected check.")]
|
|
public const string XssProtectionCheck = "https://umbra.co/healthchecks-xss-protection";
|
|
public const string ExcessiveHeadersCheck = "https://umbra.co/healthchecks-excessive-headers";
|
|
public const string CspHeaderCheck = "https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP";
|
|
|
|
public static class HttpsCheck
|
|
{
|
|
public const string CheckIfCurrentSchemeIsHttps = "https://umbra.co/healthchecks-https-request";
|
|
public const string CheckHttpsConfigurationSetting = "https://umbra.co/healthchecks-https-config";
|
|
public const string CheckForValidCertificate = "https://umbra.co/healthchecks-valid-certificate";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|