+

Search Tips | Advanced Search

For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.


Customizing MobileFirst Server Liberty for Java Cloud Foundry application

We can customize the MobileFirst Server settings before building MobileFirst Server Liberty for Java™ Cloud Foundry application.

The MobileFirst Server gets created from the artifacts that are provided in the V8.0.0 package. For an overview of the package contents and folder structure, see Package structure and contents.

The customizable elements for the MobileFirst Server for Liberty for Java Cloud Foundry applications are located in package_root/mfpf-server-libertyapp/usr. The following tables describe the subfolders and files to use for customization.

Table 1. Descriptions of the mfpf-server-libertyapp/ sub folders
Folder Description
./usr Contains the customization template for the MobileFirst Server.
./usr/config

Contains the server configuration elements (keystore, server properties, user registry) used by MobileFirst Server.

File name Description
keystore.xml The configuration of the repository of security certificates used for SSL encryption. The files listed must be referenced from the ./usr/security folder.
mfpfproperties.xml Configuration properties for the MobileFirst Server. See the supported properties listed in these topics:

registry.xml User registry configuration. The basicRegistry (a basic XML-based user-registry configuration is provided as the default. User names and passwords can be configured for basicRegistry or we can configure ldapRegistry.
tracespec.xml Trace specification for Liberty.
ltpa.xml Specifies the location of LTPA keys meant for single sign-on.

./usr/env Contains the environment properties used for server initialization (server.env) and custom JVM options jvm.options. See Table 2 for a list of supported server environment properties.
./usr/jre-security Add JRE security-related files (such as the JRE truststore, policy .jar files, and so forth) to be updated on the container. The files in this folder get copied to the JAVA_HOME/jre/lib/security/ folder in the container.
./usr/security Contains your keystore, truststore, and LTPA keys (ltpa.keys) files.
./usr/ssh Contains the ssh public key file (id_rsa.pub) to enable ssh on the container.

Table 2. Supported server environment properties (server.env)
Property Default Value Description
MFPF_SERVER_HTTPPORT 9080* The port used for client HTTP requests. Use -1 to disable this port.
MFPF_SERVER_HTTPSPORT 9443* The port used for client HTTP requests secured with SSL (HTTPS). Use -1 to disable this port.
MFPF_ADMIN_ROOT mfpadmin The context root at which the MobileFirst Server Administration Services are made available.
MFPF_CONSOLE_ROOT mfpconsole The context root at which the MobileFirst Operations Console is made available.
MFPF_ADMIN_GROUP mfpadmingroup The name of the user group assigned the predefined role mfpadmin.
MFPF_DEPLOYER_GROUP mfpdeployergroup The name of the user group assigned the predefined role mfpdeployer.
MFPF_MONITOR_GROUP mfpmonitorgroup The name of the user group assigned the predefined role mfpmonitor.
MFPF_OPERATOR_GROUP mfpoperatorgroup The name of the user group assigned the predefined role mfpoperator.
MFPF_SERVER_ADMIN_USER WorklightRESTUser The Liberty server administrator user for MobileFirst Server Administration Services.
MFPF_SERVER_ADMIN_PASSWORD mfpadmin

Ensure that you change the default value to a private password before deploying to a production environment.

The password of the Liberty server administrator user for MobileFirst Server Administration Services.
MFPF_ADMIN_USER admin The user name for the administrator role for MobileFirst Server operations.
MFPF_ADMIN_PASSWORD admin The password for the administrator role for MobileFirst Server operations.
*Do not modify the default port number. Read more in the following section.

After you finish customizing an image, it is ready to be built and run on IBM Containers for Bluemix®.

Important: If you are going to use MobileFirst Analytics, we must build and run the MobileFirst Analytics container before deploying and running the MobileFirst Server.


Port number limitation

You will not have the choice of changing the port number, since Cloud Foundry applications on IBM Bluemix are always routed through the Bluemix router. The default ports cannot be changed. The port 80 (HTTP) or 443 (HTTPS) are to be used.

Parent topic: MobileFirst Server as Liberty for Java Cloud Foundry application on IBM Bluemix