RavenDBServerSettings Methods
ClassMethods4 members
Represents the settings for configuring a RavenDB server resource.
Secured(string, string, string?, string?, X509Certificate2?) Section titled Secured(string, string, string?, string?, X509Certificate2?)staticRaven Creates a secured RavenDB server settings object with the specified configuration.
public class RavenDBServerSettings{ public static RavenDBServerSettings Secured( string domainUrl, string certificatePath, string? certificatePassword = null, string? serverUrl = null, X509Certificate2? clientCertificate = null) { // ... }}Parameters
domainUrl stringThe public domain URL for the server.certificatePath stringThe path to the certificate file.certificatePassword string?optionalThe password for the certificate file, if required. Optional.serverUrl string?optionalThe optional server URL.clientCertificate X509Certificate2? optionalOptional client certificate used by management code (health checks, ensure-database, etc.) when connecting to a secured RavenDB instance. SecuredWithLetsEncrypt(string, string, string?, string?, X509Certificate2?) Section titled SecuredWithLetsEncrypt(string, string, string?, string?, X509Certificate2?)staticRaven Creates a secured RavenDB server settings object with the specified configuration.
public class RavenDBServerSettings{ public static RavenDBServerSettings SecuredWithLetsEncrypt( string domainUrl, string certificatePath, string? certificatePassword = null, string? serverUrl = null, X509Certificate2? clientCertificate = null) { // ... }}Parameters
domainUrl stringThe public domain URL for the server.certificatePath stringThe path to the certificate file.certificatePassword string?optionalThe password for the certificate file, if required. Optional.serverUrl string?optionalThe optional server URL.clientCertificate X509Certificate2? optionalOptional client certificate used by management code (health checks, ensure-database, etc.) when connecting to a secured RavenDB instance. Creates an unsecured RavenDB server settings object with default settings.
public class RavenDBServerSettings{ public static RavenDBServerSettings Unsecured() { // ... }}WithLicense(string, bool) Section titled WithLicense(string, bool) Configures licensing options for the RavenDB server.
public class RavenDBServerSettings{ public void WithLicense( string license, bool eulaAccepted = true) { // ... }}Parameters
licensestringThe license string for the RavenDB server.eulaAccepted booloptionalIndicates whether the End User License Agreement (EULA) has been accepted. Defaults to true.