From e5f4fc31f1f29b3c5bf084aa04a0736cbc78b69d Mon Sep 17 00:00:00 2001 From: Mark Cilia Vincenti Date: Sat, 27 Nov 2021 12:37:15 +0100 Subject: [PATCH] Fixed summary documentation --- Samples/CertbotSample/CertbotSample.csproj | 2 +- .../CertbotSampleUsingMiddleware.csproj | 3 +-- .../Models/TlsCertificateLoaderHstsOptions.cs | 15 +++++++++++++++ .../Models/TlsCertificateLoaderWebOptions.cs | 14 ++++++++++++++ TlsCertificateLoader/TlsCertificateLoader.csproj | 6 +++--- 5 files changed, 34 insertions(+), 6 deletions(-) diff --git a/Samples/CertbotSample/CertbotSample.csproj b/Samples/CertbotSample/CertbotSample.csproj index 85ca643..3474e43 100644 --- a/Samples/CertbotSample/CertbotSample.csproj +++ b/Samples/CertbotSample/CertbotSample.csproj @@ -7,7 +7,7 @@ - + diff --git a/Samples/CertbotSampleUsingMiddleware/CertbotSampleUsingMiddleware.csproj b/Samples/CertbotSampleUsingMiddleware/CertbotSampleUsingMiddleware.csproj index 4c696d7..753b428 100644 --- a/Samples/CertbotSampleUsingMiddleware/CertbotSampleUsingMiddleware.csproj +++ b/Samples/CertbotSampleUsingMiddleware/CertbotSampleUsingMiddleware.csproj @@ -6,8 +6,7 @@ - - + diff --git a/TlsCertificateLoader/Models/TlsCertificateLoaderHstsOptions.cs b/TlsCertificateLoader/Models/TlsCertificateLoaderHstsOptions.cs index d3e23a6..5e9bedd 100644 --- a/TlsCertificateLoader/Models/TlsCertificateLoaderHstsOptions.cs +++ b/TlsCertificateLoader/Models/TlsCertificateLoaderHstsOptions.cs @@ -3,11 +3,26 @@ namespace TlsCertificateLoader.Models { + /// + /// TlsCertificateLoader middleware for Certbot HSTS options + /// public class TlsCertificateLoaderHstsOptions : HstsOptions { + /// + /// Enable or disable HSTS (Strict-Transport-Security header). Defaults to . + /// public bool HstsEnabled { get; set; } = true; + /// + /// Sets the max-age parameter of the Strict-Transport-Security header. Defaults to 2 years. + /// public new TimeSpan MaxAge { get; set; } = TimeSpan.FromDays(365 * 2); + /// + /// + /// public new bool IncludeSubDomains { get; set; } = false; + /// + /// Defaults to . + /// public new bool Preload { get; set; } = true; } } diff --git a/TlsCertificateLoader/Models/TlsCertificateLoaderWebOptions.cs b/TlsCertificateLoader/Models/TlsCertificateLoaderWebOptions.cs index e8f0720..f9fdc9c 100644 --- a/TlsCertificateLoader/Models/TlsCertificateLoaderWebOptions.cs +++ b/TlsCertificateLoader/Models/TlsCertificateLoaderWebOptions.cs @@ -2,10 +2,24 @@ namespace TlsCertificateLoader.Models { + /// + /// TlsCertificateLoader middleware for Certbot web options + /// public class TlsCertificateLoaderWebOptions { + /// + /// The to listen on. Defaults to . + /// public IPAddress IPAddress { get; set; } = IPAddress.Any; + + /// + /// The HTTPS port to listen on. Defaults to 443. + /// public int HttpsPort { get; set; } = 443; + + /// + /// The HTTP port to listen on. Defaults to 80. + /// public int HttpPort { get; set; } = 80; } } diff --git a/TlsCertificateLoader/TlsCertificateLoader.csproj b/TlsCertificateLoader/TlsCertificateLoader.csproj index 04498de..de82357 100644 --- a/TlsCertificateLoader/TlsCertificateLoader.csproj +++ b/TlsCertificateLoader/TlsCertificateLoader.csproj @@ -6,7 +6,7 @@ https://github.com/MarkCiliaVincenti/TlsCertificateLoader.git https://github.com/MarkCiliaVincenti/TlsCertificateLoader LICENSE - 2.0.0 + 2.0.1 logo.png Added middleware for Certbot certificate loading. Allows loading of TLS (HTTPS) certificates for .NET 6.0 Kestrel web applications, allowing for refreshing of certificates as well as compatibility with HTTP/3. Includes optional middleware for using certificates obtained by Certbot. @@ -14,8 +14,8 @@ HTTPS,TLS,SSL,Kestrel,HTTP3,HTTP/3,certificates,security,net6,net6.0,Certbot,aspnetcore git True - 2.0.0.0 - 2.0.0.0 + 2.0.1.0 + 2.0.1.0 README.md true True