Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

MongoDBTlsMode

Enum
📦 Aspire.Hosting.MongoDB v17.0.0

Defines the TLS mode for MongoDB server.

type MongoDBTlsMode string
const (
MongoDBTlsModeAllowTls MongoDBTlsMode = "AllowTls"
MongoDBTlsModePreferTls MongoDBTlsMode = "PreferTls"
MongoDBTlsModeRequireTls MongoDBTlsMode = "RequireTls"
)

Values

MongoDBTlsModeAllowTls"AllowTls"
Connections between servers do not use TLS. For incoming connections, the server accepts both TLS and non-TLS.
MongoDBTlsModePreferTls"PreferTls"
Connections between servers use TLS. For incoming connections, the server accepts both TLS and non-TLS.
MongoDBTlsModeRequireTls"RequireTls"
The server uses and accepts only TLS encrypted connections.