NameServer Application
NameServer is useful to configure your different deployed regions or clusters.
So load balancing is done at another level.
Configuration
By default, Photon NameServer can be configured using "deploy\NameServer.json" file.
The file can be changed in 'NameServerConfig' setting in "deploy\NameServer\bin\NameServer.xml.config".
In this file, simply add 'nodes' where each node should represent a working MasterServer application.
You can add as many nodes as you want.
Each region should match a distinct MasterServer but you can have multiple aliases for the same MasterServer; meaning you can have two more nodes that have different Region names but point to the same server.
However, all nodes should have distinct Region codes.
JSON
{
"Nodes": [
{
"Region": "EU",
"IpAddress": "127.0.0.1",
"IpAddressIPv6": "::1",
"Hostname": "localhost"
},
]
}
Region: [Required] Should be a unique non empty string that identifies the region's MasterServer.
IpAddress: [Required] Should be an IPv4 address accessible by both NameServer and clients.
IpAddressIPv6: [Optional] Should be an IPv6 address accessible by both NameServer and clients.
Hostname: [Optional] Should be a hostname accessible by both NameServer and clients.
Custom Authentication
Custom authentication on the NameServer has two out-of-the-box providers: Facebook, Steam, VIVE and Oculus.
Custom authentication for the NameServer can be configured using "deploy\NameServer\bin\NameServer.xml.config".