# 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: `5`

Represents the settings for configuring a RavenDB server resource.

## 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/67afcca30f02c18687f9c5219313710af9706630/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/67afcca30f02c18687f9c5219313710af9706630/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/67afcca30f02c18687f9c5219313710af9706630/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/67afcca30f02c18687f9c5219313710af9706630/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/67afcca30f02c18687f9c5219313710af9706630/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; }
```
