This document is about: SERVER 5
SWITCH TO

Nameserver Settings

NameServer

SettingPhoton DefaultConfig DefaultDescription
EnablePerformanceCountersTRUEWhether or not to enable Windows Performance Counters.
GCLatencyModeInteractive
MasterServerPortSecureWebSocket1909019090Port for client-to-MasterServer Secure WebSocket connections. Must match the corresponding HTTPListener in PhotonServer.config.
MasterServerPortTcp45304530Port for client-to-MasterServer TCP connections. Must match the corresponding TCPListener in PhotonServer.config.
MasterServerPortUdp50555055Port for client-to-MasterServer UDP connections. Must match the corresponding UDPListener in PhotonServer.config.
MasterServerPortWebSocket90909090Port for client-to-MasterServer WebSocket connections. Must match the corresponding HTTPListener in PhotonServer.config.
MasterServerWsPathMasterMasterPath for client-to-MasterServer WebSocket and WebSocketSecure connections. Must match the corresponding HTTPListeners in PhotonServer.config.
MaxDisconnectTime10000
MinDisconnectTime3000
NameServerConfigNameserver.jsonNameserver.json

Authentication

SettingPhoton DefaultConfig DefaultDescription
AuthCacheUpdateInterval300
AuthTimeout20000Timeout period for client peers that connect without authenticating, in milliseconds.
AuthTokenExpirationSeconds18001800How long before the authentication token expires.
AuthTokenKey76B2814E-2A50-4E29-838A-20411D335FC9
HMACTokenKey

CustomAuth

SettingPhoton DefaultConfig DefaultDescription
AllowAnonymousFALSETRUEWhether or not to allow clients to be authenticated (get an auth token and UserID) without going through any configured providers.
EnabledTRUEWhether or not custom authentication should be used.

CustomAuth.HttpQueueSettings

SettingPhoton DefaultConfig DefaultDescription
HttpRequestTimeout3000030000How long (in milliseconds) the queue can wait for an HTTP response.
LimitHttpResponseMaxSize1000Maximum size in bytes for HTTP response payload.
MaxBackoffTime1000010000Backoff threshold when retrying to send an HTTP request.
MaxConcurrentRequests5050Maximum concurrent HTTP requests allowed.
MaxErrorRequests10100Maximum errors while processing queued requests. If reached, the HttpQueue will disconnect (clear all queued requests and reject incoming) and resume after ReconnectInterval.
MaxQueuedRequests50005000Maximum number of requests that can be queued.
MaxTimedOutRequests1010Maximum requests that timeout in the queue waiting to be processed. If reached, the HttpQueue will disconnect and resume after ReconnectInterval.
QueueTimeout2000050000If a request stays in the HttpQueue for this many milliseconds, it will be removed automatically.
ReconnectInterval6000060000How long (in milliseconds) the queue waits before resuming processing of HTTP requests.
Back to top