The user list file establishes account information, such as reserved connections and maximum connections. Create the user list and store it anywhere that is accessible to Helix Mobile Server.
The user list is a text file with the following format:
UserList [{
account, /path/, minimum_connections, maximum_connections}
]
where:
account is either a specific user name, or ~* to indicate that all accounts will use the same settings. See "Using Multiple User List Files" for examples of how multiple accounts can be shown in a user list.
Note: Dedicated hosting Helix Mobile Servers use a slightly different format. Refer to "Dedicated Hosting User File Format" for the correct format to use.
/path/ gives information about the location of users' media files. It does not necessarily refer to an actual location or portion of a location; instead, it is a logical method of grouping the users.
minimum_connections is the minimum number of connections reserved for this user. 0 indicates that no connections are reserved. See "Connections Available for Each Account" for more information.
maximum_connections is the maximum number of connections available to this user. 0 indicates that no connections may be used. See "Connections Available for Each Account" for more information.
Tip: You can include comments in the file by preceding a line with a semi-colon (;).
In this user list file (shown in the left column of the table), users are grouped according to their geographic location. Two users, Chris and Pat, are in the Washington (wa) group. Two other users, Lee and Sandy, are in the Oregon group.
|
User List File Contents |
Matching Customer Name |
|
UserList [ |
|
|
{chris, /wa/canderson/, 2, 5}, |
Chris Anderson |
|
{lee, /or/ladams/, 0, 100}, |
Lee Adams |
|
{pat, /wa/pbrown/, 2, 50}, |
Pat Brown |
|
{sandy, /or/schu/, 1, 35}, |
Sandy Chu |
|
] |
|
|
|
|
If each account has different settings, create a separate record for each user, as in the example above.
If you have a large number of accounts to create, and they will all use the same number of connections, create a single entry that refers to all accounts generically:
UserList [{~*, /
path/, minimum_connections, maximum_connections}]
In the following example, one connection is reserved for each person, and the maximum number of connections available for any account is 35. (There are some restrictions on whether the connections are actually reserved; see "Connections Available for Each Account".)
UserList [
{~*, /users/, 1, 35}
]
Custom account information and generic settings can be combined in a single user list. Combining them is convenient if most users have the same settings, but a few have different number of connections reserved, or use different paths:
UserList [{
username1, /path/, minimum_connections, maximum_connections}{
username2, /path/, minimum_connections, maximum_connections}{
username3, /path/, minimum_connections, maximum_connections}...
{~*, / path/, minimum_connections, maximum_connections}]
In the following example, customized accounts for four users have been created, and all other accounts will use the default settings shown in the last entry:
|
User List |
Customer Name |
|
UserList [ |
|
|
{chris, /wa/canderson/, 2, 5}, |
Chris Anderson |
|
{lee, /or/ladams/, 0, 100}, |
Lee Adams |
|
{pat, /wa/pbrown/, 1, 35}, |
Pat Brown |
|
{sandy, /or/schu/, 1, 5}, |
Sandy Chu |
|
{~*, /id/, 1, 35} |
All others not specified above |
|
] |
|
|
|
|
You can create as many user lists as you want; using multiple files can make administration easier. For example, an ISP provider might include commercial accounts in one user list file and personal accounts in another file.
Helix Mobile Server loads the user lists in the order they appear in the configuration file, and any settings in subsequent files override settings in previously-loaded files. If the same user name appears in more than one list, Helix Mobile Server uses the settings in the last user list.
Because of this behavior, bear in mind the following considerations when using multiple user list files:
An account name must not appear in more than one file.
The generic account information (an entry beginning with ~*) must be used carefully. Include it only in the first-loaded user list file. If you include it in the last file, Helix Mobile Server will ignore all the other user lists.
Once you have created the user list file and the ISP hosting feature is in use, you must instruct Helix Mobile Server to re-read the user list.
On Windows-based platforms, after you edit a user list file, you must restart Helix Mobile Server for the changes to take effect.
On UNIX and Linux platforms, you can use the SIGHUP command to instruct Helix Mobile Server to re-read the user list files.
The format of the user list file in dedicated hosting is nearly the same as the account-based method, with these exceptions:
Create only one user file. You cannot use more than one with the dedicated hosting server.
Create only one entry in the user file. This entry applies to all user accounts.
Instead of giving an account name, you indicate how far to traverse the user directory structure in order to find the unique user directories.
Use the following format:
UserList [{*
n, /path/, minimum_connections, maximum_connections}]
where n is a number that represents the level of directory at which individual user directories appear.
In the following example, all user accounts are located under a subdirectory of the UserAccounts directory. The unique directories are located at the fourth directory level (rabrams, radams, sanderson, and so on).
... /UserAccounts/r/ra/rabrams /UserAccounts/r/ra/radams ... /UserAccounts/s/sa/sanderson /UserAccounts/s/sb/sbraun /UserAccounts/s/sb/sbrown /UserAccounts/s/sc/schu
...
The user list for this example uses 4 for the value of n:
UserList [{*4, /UserAccounts/, 1, 15}]
URLS created with this method have the following format:
rtsp://helixserver.example.com/directory1/directory2/directory3/ filename
For example:
rtsp://helixserver.example.com/UserAccounts/r/ra/rabrams/band.rm