Knowledge Base
Published Jul. 2, 2025

How to modify the web.server.display.node and company.security.strangers.verify properties in a Liferay PaaS environment

Written By

Isaac Wilson

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How to articles!

While we make every effort to ensure this Knowledge Base is accurate,it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Issue

  • After updating our Liferay PaaS service version to v4.1.0+, our team noticed that the -uat environment now has the instance's node information displayed in the footer of Liferay pages. We tried to set web.server.display.node=false within our portal-ext.properties file, but it appears that the node information is still displayed (though it is not displayed when this build is deployed to -prd).
  • Is there any way to hide this instance information within the -uat environment?

Environment

  • Liferay PaaS

Resolution

  • To hide the node information, the following environment variable can be set for the Liferay service (either via the liferay/LCP.json, or within the UI at /services/liferay/environment-variables):
    Key: LIFERAY_WEB_PERIOD_SERVER_PERIOD_DISPLAY_PERIOD_NODE
    Value: false
  • Similarly, this variable can be set to true in a Production-type environment if the node information is needed in those Liferay instances instances.

Additional Information

  • To assist in the development process, some Liferay PaaS environment variables (which act as overrides to portal.properties) are set during the service's startup events -- with most of these relating to things like database connection, security, and clustering-specific properties. In non-production type environments (but not the production type), the following two variables are set with the below defaults, if no existing corresponding env. variable already exists:
    • LIFERAY_WEB_PERIOD_SERVER_PERIOD_DISPLAY_PERIOD_NODE=true (i.e., web.server.display.node=true)
    • LIFERAY_COMPANY_PERIOD_SECURITY_PERIOD_STRANGERS_PERIOD_VERIFY=false (i.e., company.security.strangers.verify=false
  • Additional related information can be found in the following articles:
Did this article resolve your issue ?

Knowledge Base