# RavenDBServerSettings Properties

- Package: [CommunityToolkit.Aspire.Hosting.RavenDB](/reference/api/csharp/communitytoolkit.aspire.hosting.ravendb.md)
- Type: [RavenDBServerSettings](/reference/api/csharp/communitytoolkit.aspire.hosting.ravendb/ravendbserversettings.md)
- Kind: `Properties`
- Members: `6`

Represents the settings for configuring a RavenDB server resource.

## ForceTcpScheme

- Name: `ForceTcpScheme`
- Modifiers: `nullable` `get; set`
- Returns: `bool?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.RavenDB/RavenDBServerSettings.cs)

Advanced/debug optional parameter that forces the TCP scheme for the RavenDB server URL. Useful for deployment scenarios with constrained http(s):// schema usage (e.g., only port 80 can use http)

```csharp
public bool? ForceTcpScheme { get; set; }
```

## LicensingOptions

- Name: `LicensingOptions`
- Modifiers: `nullable` `get`
- Returns: [LicensingOptions?](/reference/api/csharp/communitytoolkit.aspire.hosting.ravendb/licensingoptions.md)
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.RavenDB/RavenDBServerSettings.cs)

Gets the licensing options configured for the server.

```csharp
public LicensingOptions? LicensingOptions { get; }
```

## Port

- Name: `Port`
- Modifiers: `nullable` `get; set`
- Returns: `int?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.RavenDB/RavenDBServerSettings.cs)

Optional port to expose for the HTTP endpoint (Studio / REST API). If not set, Aspire will automatically assign a free port on the host at runtime.

```csharp
public int? Port { get; set; }
```

## ServerUrl

- Name: `ServerUrl`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.RavenDB/RavenDBServerSettings.cs)

The internal URL for the RavenDB server. If not specified, the container resource will automatically assign a random URL.

```csharp
public string? ServerUrl { get; set; }
```

## SetupMode

- Name: `SetupMode`
- Modifiers: `get`
- Returns: [SetupMode](/reference/api/csharp/communitytoolkit.aspire.hosting.ravendb/setupmode.md)
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.RavenDB/RavenDBServerSettings.cs)

The setup mode for the server. This determines whether the server is secured, uses Let's Encrypt, or is unsecured.

```csharp
public SetupMode SetupMode { get; }
```

## TcpPort

- Name: `TcpPort`
- Modifiers: `nullable` `get; set`
- Returns: `int?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.RavenDB/RavenDBServerSettings.cs)

Optional port to expose for the TCP endpoint (data / cluster traffic). If not set, the default 38888 is used.

```csharp
public int? TcpPort { get; set; }
```
