diff --git a/snippets/server-core/node/statsigOptions.mdx b/snippets/server-core/node/statsigOptions.mdx index cb1a3b742..cdb646038 100644 --- a/snippets/server-core/node/statsigOptions.mdx +++ b/snippets/server-core/node/statsigOptions.mdx @@ -61,6 +61,46 @@ Advanced settings to fetch from different sources (e.g., [statsig forward proxy](/infrastructure/forward-proxy), your own proxy server, data store) or to use different network protocols (HTTP vs gRPC streaming). + + + Type of adapter to use for fetching specifications. Options: + - `network_http`: Standard HTTP polling (default) + - `network_grpc_websocket`: gRPC streaming for real-time updates + - `data_store`: Fetch from a custom data store + + + + Maximum time (in milliseconds) to wait for initialization to complete. + + + + Custom URL for fetching feature specifications. Use this to point to your own proxy server or custom endpoint. **Note:** When using gRPC (`network_grpc_websocket`), ensure the URL includes the `dns://` prefix (e.g., `dns://your-server.com:port`). + + + + Authentication mode for secure connections (primarily for gRPC): + - `none`: No authentication + - `tls`: Transport Layer Security + - `mtls`: Mutual TLS (client and server authentication) + + + + Path to the Certificate Authority (CA) certificate file for TLS/mTLS authentication. + + + + Path to the client certificate file for mTLS authentication. + + + + Path to the client private key file for mTLS authentication. + + + + Domain name for the server (used for certificate validation in TLS/mTLS). + + + Interface to integrate observability metrics exposed by the SDK (e.g., config propagation delay, initialization time). See [details](#observability-client). diff --git a/snippets/server-core/rust/options.mdx b/snippets/server-core/rust/options.mdx index cfe73bd45..1bb707c23 100644 --- a/snippets/server-core/rust/options.mdx +++ b/snippets/server-core/rust/options.mdx @@ -89,9 +89,49 @@ - Configuration for specification adapters. + Configuration for specification adapters. Advanced settings to fetch from different sources (e.g., [statsig forward proxy](/infrastructure/forward-proxy), your own proxy server, data store) or to use different network protocols (HTTP vs gRPC streaming). + + + Type of adapter to use for fetching specifications. Options: + - `NetworkHttp`: Standard HTTP polling (default) + - `NetworkGrpcWebsocket`: gRPC streaming for real-time updates + - `DataStore`: Fetch from a custom data store + + + + Maximum time (in milliseconds) to wait for initialization to complete. + + + + Custom URL for fetching feature specifications. Use this to point to your own proxy server or custom endpoint. **Note:** When using gRPC (`NetworkGrpcWebsocket`), ensure the URL includes the `dns://` prefix (e.g., `dns://your-server.com:port`). + + + + Authentication mode for secure connections (primarily for gRPC). Options: `"none"`, `"tls"`, `"mtls"`: + - `none`: No authentication + - `tls`: Transport Layer Security + - `mtls`: Mutual TLS (client and server authentication) + + + + Path to the Certificate Authority (CA) certificate file for TLS/mTLS authentication. + + + + Path to the client certificate file for mTLS authentication. + + + + Path to the client private key file for mTLS authentication. + + + + Domain name for the server (used for certificate validation in TLS/mTLS). + + + Custom adapter for specifications.