Configuring PxServer |
|
The server is configured in Windows via the PxServer Configuration application, PxServerConfig.exe, which can be accessed directly from the IDE Main Launcher (expand the Data Management category and select Configure PxServer) or from the Start menu entry. You can also double click the executable file name from within the PxPlus installation folder.
PxServer configuration allows you to set the server network settings, file I/O permissions and debug logging.
This window is divided into the following tabbed panels for viewing and/or changing the configuration settings: Server, Permissions, Service, Debug and About.
Server configuration settings | ||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||
Settings to add, edit or remove access permissions | ||||||||||||||||||||||||||||||||||||||||||
The server starts with default access permissions. These permissions can be viewed/changed:
The above default settings grant users almost unrestricted read access to the server's data sources (* is a wildcard and will match any input). Therefore, for security reasons, you should reset the parameters based on your own business rules before the PxServer is used. PxServer checks access permissions by searching the permission rules from the maximum restriction to the lowest one. It is a method to grant access to specific directories on the server based on a client's User ID and Company Code. If the check for a specific User ID and Company Code fails, then the User ID is substituted with an * (wildcard) and the combination for User ID = * with Company Code = specific is checked against the corresponding rule if it is present on the system. The next check is performed for User ID = specific, Company Code = *, and the last check is for User ID = *, Company Code = *. Refer to the table below:
Example: In the previous example above, user John from ABC Company is granted access to the data files in the C:\workspace\data and/or C:\users\john\abc directories. According to this example, the server administrator has temporarily denied John access; however, John would still have read-only access to directories, as all users of all companies may access any directory. | ||||||||||||||||||||||||||||||||||||||||||
Settings to install and control the PxServer as a service | ||||||||||||||||||||||||||||||||||||||||||
The PxServer Windows service can be installed/uninstalled and controlled (Start, Stop and Restart). If the PxServer service is installed, the current status of the service will be displayed. If any action is taken, the result of that action will be displayed. You can also install/uninstall and control Windows services using the Windows Services interface accessed through the Control Panel (in the Administrative Tools sub-folder). Important Note:
| ||||||||||||||||||||||||||||||||||||||||||
Debug mode settings | ||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||
PxServer information | ||||||||||||||||||||||||||||||||||||||||||
|
Includes information about the PxServer version, as well as PVX Plus Technologies links. |
In UNIX, the server is configured by editing the plain text Configuration file, pxserver.conf. The pxserver.conf file can be found in the PxPlus installation directory.
The Configuration file consists of "settings" entries with the format:
setting=value
Comments are also allowed in the Configuration file and are indicated by any line that starts with the # (number sign). The default Configuration file provides several descriptive comments to make it easy to modify.
The default pxserver.conf is as follows:
#Server Configuration
# Port number (Default is 4193)
# Keepalive message interval in seconds (Default is 60)
# Reconnect wait period in seconds (Default is 120)
port=4193
keepalive interval=60
reconnect timeout=120
#SSL Configuration
# SSL Certificate path
# To enable SSL specify a certificate file
#ssl=/myapp/sslcert.pem
#Permissions Configuration
# List of permission entries, a permission entry is of the form 'permission=User_ID,Company_Code,Access_Flag,Read_Write_Flag,Directories_&_Files'
# User_ID - string representing a user ID, or '*' so this permission matches all user IDs
# Company_Code - String representing a company code, or '*' so this permission matches all company codes
# Access_Flag - 'A' for access is Allowed, or 'D' for access is Denied
# Read_Write_Flag - 'R' for Read only access, or 'RW' for Read & Write access
# Directories_&_Files - String that contains a comma separated list of directories & files that this permission allows access to, or '*' so this permission matches all directories & files
permission=*,*,A,R,*
#Prefix Configuration
# Prefix paths
# This is a comma separated list of prefixes.
#prefix=/myapp/data/,/myapp/data/==/
#Debug Configuration
# Log File Path (Default is blank for no logging)
log file path=
#File Exclusivity Configuration
# By turning this flag on PxServer will use exclusive file locks for improved performance
exclusive=0