Configuring Liferay PaaS for Client Extensions
Client extensions are the ideal way to deploy various customizations and changes to Liferay DXP in cloud environments. Here are some configuration requirements for Liferay PaaS when you work with client extensions.
Web Server Configurations
By default, all non-production environments in Liferay PaaS require basic authentication (via your web browser) to access. This requirement secures your development environments so only developers for your site can view it.
However, the basic authentication requirement also prevents client extensions from communicating between your services by default. You can configure an exception on your web server so client extensions can bypass this constraint.
-
In your project’s repository, navigate to the
webserver/configs/<ENV>/
folder for the desired environment (e.g.,webserver/configs/dev/
). -
Add a new file called
proxy.include
. -
Copy and save these contents to the
proxy.include
file: -
In the same folder, edit the
liferay.conf
file and replace the contents with this: -
Save and commit these changes to your repository.
-
Push and deploy the build using your normal workflow to the chosen environment.
When the build completes, the web server is configured to allow client extensions to communicate with the Liferay DXP service.
Incompatible Liferay DXP Configurations
Certain configurations for Liferay DXP are incompatible with client extensions. Remove these configurations to avoid issues when you deploy client extensions to the environment.