> For the complete documentation index, see [llms.txt](https://documentation.2pintsoftware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.2pintsoftware.com/mom/reference/settings.md).

# Settings

All settings, as they appear in the Configuration Editor (**Configure StifleR MOM** in the Start menu).

* The **Name** column is the internal name of the setting. Settings are stored in the registry under `HKLM\SOFTWARE\2Pint Software\StifleR\MOM`.
* Settings marked *advanced* are only shown with **Show advanced** on.
* MOM reads the settings when the service starts. Restart the service after a change.

## Port and Certificate

| Setting in the editor                                 | Name                                 | Default      | Description                                                                              |
| ----------------------------------------------------- | ------------------------------------ | ------------ | ---------------------------------------------------------------------------------------- |
| **IP Address to listen to**                           | `ListenToIpAddress`                  | empty        | Empty means MOM finds the address itself                                                 |
| **Port to use when communicating with StifleR**       | `MainPort`                           | `8088`       | HTTPS port for statistics and StifleR                                                    |
| **Use SSL for MOM Proxy**                             | `UseSslForMomProxy`                  | On           | TLS on the proxy port                                                                    |
| **MOM Proxy port to use**                             | `ProxyPort`                          | `8089`       | The port clients use as their proxy                                                      |
| **Branch Cache content download connect port to use** | `PeerDistContentDownloadConnectPort` | `1337`       | The BranchCache port MOM uses to get content from peers                                  |
| **Certificate options**                               | `CertificateSetting`                 | AutoGenerate | See [Certificates](https://documentation.2pintsoftware.com/mom/planning/certificates.md) |
| **Use certificate with specified subject name (CN)**  | `CertificateSubjectName`             | empty        | For LocateBySubjectName                                                                  |
| **Use certificate with specified thumbprint**         | `CertificateThumbprint`              | empty        | For LocateByThumbprint. 40 characters                                                    |
| **Certificate store location**                        | `StoreLocation`                      | LocalMachine | Where MOM looks for your own certificate                                                 |
| **Certificate store name**                            | `StoreName`                          | Root         | Where MOM looks for your own certificate                                                 |
| **DNS Name to use in Auto-generated cert**            | `SelfSignedDnsName`                  | empty        | Required for AutoGenerate                                                                |
| **IP Address to use in Auto-generated cert**          | `SelfSignedIpAddress`                | empty        | Required for AutoGenerate                                                                |
| **URI to use in Auto-generated cert**                 | `SelfSignedUri`                      | empty        | Required for AutoGenerate                                                                |

## Outbound Proxy

| Setting in the editor                       | Name                     | Default | Description                              |
| ------------------------------------------- | ------------------------ | ------- | ---------------------------------------- |
| **Use Outbound Proxy for Mom**              | `UseOutboundProxyForMom` | Off     | MOM reaches the internet through a proxy |
| **Outbound Proxy address to use for Mom**   | `OutboundProxyAddress`   | empty   | With protocol and port                   |
| **Outbound Proxy username (if applicable)** | `OutboundProxyUsername`  | empty   |                                          |
| **Outbound Proxy password (if applicable)** | `OutboundProxyPassword`  | empty   | Stored encrypted                         |

## Filtering

| Setting in the editor                         | Name                    | Default    | Description                                                 |
| --------------------------------------------- | ----------------------- | ---------- | ----------------------------------------------------------- |
| **WhiteList wildcards as csv**                | `WhiteListHostCsv`      | empty      | Only these hosts are handled. Comma separated, `*` allowed  |
| **BlackList wildcards as csv**                | `BlackListHostCsv`      | empty      | These hosts are never handled. Comma separated, `*` allowed |
| **Minimum content length to create CI for**   | `MinimumLengthToHandle` | `10485760` | Smaller files are not handled. In bytes                     |
| **Valid content-type to create CI for (CSV)** | `ContentTypesCsv`       | empty      | Only these content types are handled. Empty means all       |

## Serving

| Setting in the editor                                                  | Name                                       | Default                                    | Description                                                                               |
| ---------------------------------------------------------------------- | ------------------------------------------ | ------------------------------------------ | ----------------------------------------------------------------------------------------- |
| **Location to save MOM static/temp files**                             | `ProgramDataLocation`                      | `%PROGRAMDATA%\2Pint Software\StifleR.Mom` | See [Data folders](https://documentation.2pintsoftware.com/mom/reference/data-folders.md) |
| **Serve files from MOM static folder if applicable**                   | `ServeLocalFile`                           | On                                         | Keep complete files and serve them to clients                                             |
| **Serve files from MOM temp folder if possible**                       | `ServeTemporaryFile`                       | On                                         | Serve the parts of an unfinished download to other clients                                |
| **Postpone bits request if already in progress**                       | `PostponeBitsRequestIfInProgress`          | On                                         | Hold a BITS client while the same file is being downloaded                                |
| **Postpone bits request for specified seconds if already in progress** | `PostponeBitsRequestIfInProgressInSeconds` | `480`                                      | The longest hold. At most 540                                                             |
| **Use Windows BranchCache to generate CI**                             | `UseNativeBranchCacheForCi`                | On                                         | On is native mode, off is managed mode. *Advanced*                                        |
| **Passphrase to use when generating CI in managed code**               | `CiServerSecretPassphrase`                 | empty                                      | Required in managed mode                                                                  |
| **Generate CI as NT System**                                           | `GenerateCiAsNtSystem`                     | Off                                        | Native mode only, for systems that need it. *Advanced*                                    |

## Infrastructure Settings

Only **Use Infrastructure** is shown until it is turned on.

| Setting in the editor                                 | Name                        | Default | Description                                                                            |
| ----------------------------------------------------- | --------------------------- | ------- | -------------------------------------------------------------------------------------- |
| **Use Infrastructure**                                | `JoinInfrastructure`        | Off     | Register MOM with the StifleR server                                                   |
| **Api Url to StifleR Server including port number**   | `StifleRServerApiUrl`       | empty   |                                                                                        |
| **Mom full external communication URL (for stifleR)** | `ExternalUrlWithPort`       | empty   | The address the StifleR server uses for MOM. Empty means the listening address         |
| **Mom HTTPS proxy URL**                               | `HttpsProxyAddress`         | empty   | The proxy address given to clients. Empty means the listening address                  |
| **Mom heartbeat interval in seconds**                 | `HeartBeatEveryNseconds`    | `30`    | 10 to 600                                                                              |
| **Token expiration in seconds**                       | `ApiTokenExpirationMinutes` | `120`   | The longest age of a token from the StifleR server. The value is in minutes, 30 to 900 |

## Monitor settings

*Advanced.*

| Setting in the editor                                                              | Name                                             | Default | Description                                                                |
| ---------------------------------------------------------------------------------- | ------------------------------------------------ | ------- | -------------------------------------------------------------------------- |
| **Prefetch requested file**                                                        | `EnablePrefetch`                                 | On      | MOM downloads requested files itself, ahead of the client                  |
| **Number of threads to use when prefetching**                                      | `PrefetchThreadsToUse`                           | `0`     | `0` means the number of processors minus one                               |
| **Minimum file size (MB) to prefetch**                                             | `PrefetchMinimumSizeInMb`                        | `10`    |                                                                            |
| **Maximum file size (MB) to prefetch**                                             | `PrefetchMaximumSizeInMb`                        | `0`     | `0` means no limit                                                         |
| **Expire Branch-cache client with no transfer after (seconds)**                    | `ExpireBcEnableClientIfNoTransferInSeconds`      | `180`   | Give up on a client that sends no data for this long                       |
| **Expire lingering sockets after inactivity (seconds)**                            | `ExpireLingeringSocketWithNoActivityInSeconds`   | `300`   | Close idle connections                                                     |
| **Complete request for monitored client if expired/cancelled**                     | `CompleteMonitoredExpiredJob`                    | Off     | MOM finishes a download a client abandoned. Only used when prefetch is off |
| **Complete expired/cancelled request if current download is over or equal to (%)** | `CompleteIfExpiredJobMinDownloadRatioPercentage` | `50`    |                                                                            |
| **Complete expired/cancelled request if current download is at-least (MB)**        | `CompleteIfExpiredJobDownloadedAtLeastMb`        | `200`   |                                                                            |

## Statistics

*Advanced.*

| Setting in the editor                   | Name                               | Default | Description                                              |
| --------------------------------------- | ---------------------------------- | ------- | -------------------------------------------------------- |
| **Enable database storage**             | `EnableStatisticsDatabase`         | On      | Needed for the statistics page and the StifleR dashboard |
| **Enable Windows Performance Counters** | `EnableWindowsPerformanceCounters` | On      |                                                          |
| **Enable DotNet Event Counters**        | `EnableDotNetEventCounters`        | On      |                                                          |

## Cleanup

*Advanced.*

| Setting in the editor                                            | Name                        | Default  | Description                                   |
| ---------------------------------------------------------------- | --------------------------- | -------- | --------------------------------------------- |
| **Delete temporary files after last accessed time (seconds)**    | `DeleteTemporaryFilesAfter` | `172800` | Parts of unfinished downloads. 48 hours       |
| **Delete local stored file**                                     | `ReclaimLocalSpace`         | On       | Delete complete files that are no longer used |
| **Delete local stored files after last accessed time (seconds)** | `DeleteLocalFilesAfter`     | `172800` | 48 hours                                      |

## HttpClient Options

Connections from MOM to the servers it downloads from. *Advanced.*

| Setting in the editor                                                     | Name                                              | Default                        | Description                                       |
| ------------------------------------------------------------------------- | ------------------------------------------------- | ------------------------------ | ------------------------------------------------- |
| **Disable destination SSL certificate validation**                        | `IgnoreHttpCertificateError`                      | Off                            | On makes MOM accept any certificate. Leave it off |
| **HttpAgent to use**                                                      | `HttpAgent`                                       | `2Pint Software BC HashiBashi` | The User-Agent MOM sends                          |
| **Enable following redirection responses**                                | `AllowAutoRedirect`                               | On                             |                                                   |
| **Maximum number of allow HTTP redirects**                                | `MaxAutomaticRedirections`                        | `50`                           |                                                   |
| **Retry count if destination server failed to respond**                   | `HttpFailureMaxRetry`                             | `3`                            |                                                   |
| **Delay (seconds) between retry if destination server failed to respond** | `HttpFailureRetryDelayInSeconds`                  | `5`                            |                                                   |
| **Connect Timeout for HTTP connection (seconds)**                         | `HttpInvokerConnectTimeoutInSeconds`              | `15`                           |                                                   |
| **Pooled HTTP connection lifetime (seconds)**                             | `HttpInvokerPooledConnectionLifetimeInSeconds`    | `300`                          |                                                   |
| **Pooled HTTP connection idle timeout (seconds)**                         | `HttpInvokerPooledConnectionIdleTimeoutInSeconds` | `120`                          |                                                   |

## Security Settings

*Advanced.*

| Setting in the editor | Name        | Default | Description                                                           |
| --------------------- | ----------- | ------- | --------------------------------------------------------------------- |
| **JWT secret key**    | `JwtSecret` | empty   | Signs access tokens. Empty means MOM creates a new one at every start |

## Debug

*Advanced.*

| Setting in the editor                     | Name                      | Default               | Description                                                                                                                  |
| ----------------------------------------- | ------------------------- | --------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| **Enable debug log**                      | `EnableDebugLog`          | Off                   | For troubleshooting only. See [Log files](https://documentation.2pintsoftware.com/mom/monitoring-and-reporting/log-files.md) |
| **Folder to save MOM debug logs**         | `DebugLogFolder`          | `%TEMP%/StifleR.Mom/` |                                                                                                                              |
| **Maximum size for each log file (byte)** | `DebugFileSizeLimitBytes` | `10485760`            |                                                                                                                              |

## Cache settings, Peer Download Options and UDP Options

*Advanced.* These tune internal caches and the way MOM gets content from peers. Leave them at the defaults.

| Setting in the editor                                                 | Name                                       | Default |
| --------------------------------------------------------------------- | ------------------------------------------ | ------- |
| **Timeout (ms) when querying local cache**                            | `QueryLocalCacheTimeOut`                   | `5000`  |
| **Maximum number of cached request status**                           | `RequestStatusHolder`                      | `10000` |
| **Expire cached status after (seconds) in sliding mode**              | `RequestStatusSlidingExpireInSeconds`      | `3600`  |
| **Maximum number of cached CI**                                       | `CachedCiHolder`                           | `100`   |
| **Expire cached CI after (seconds) in sliding mode**                  | `CachedCiHolderSlidingExpireInSeconds`     | `300`   |
| **Maximum number of cached request Branch-cache info**                | `RequestDetailsHolder`                     | `10000` |
| **Expire cached request content Branch-cache info after (seconds)**   | `RequestDetailsExpireInSeconds`            | `300`   |
| **Maximum number of cached content length info**                      | `ContentLengthHolder`                      | `1000`  |
| **Expire cached content length info after (seconds) in sliding mode** | `ContentLengthCacheSlidingExpireInSeconds` | `900`   |
| **Buffer size to use when downloading (byte)**                        | `DownloaderBufferSize`                     | `65536` |
| **Timeout (seconds) when downloading**                                | `DownloaderTimeout`                        | `30000` |
| **How long to wait (ms) to get broadcast reply**                      | `WaitForResponseAfterAllBroadcast`         | `1000`  |
| **Maximum number of messages in UDP queue**                           | `MaximumMessagesInChannel`                 | `65536` |
| **Maximum size of UDP message (byte)**                                | `MaximumBufferSize`                        | `4192`  |
| **Idle time between checking queue (milliseconds)**                   | `SenderCheckQueueIntervalWhileIdleInMs`    | `500`   |
| **How many times to broadcast an UDP message**                        | `SenderRepeatCount`                        | `1`     |
| **Minimum Delay between broadcasting same UDP Message (millisecond)** | `SenderRepeatDelayInMsMinInclusive`        | `1`     |
| **Maximum Delay between broadcasting same UDP Message (millisecond)** | `SenderRepeatDelayInMsMaxInclusive`        | `5`     |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.2pintsoftware.com/mom/reference/settings.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
