listener.xml

Default configurations

How to create your custom listener.xml

Template for your custom listener.xml

Tags for defining an application server instance

How to manipulate your application server instances

How to overwrite default (global) configurations for CSP directives

listener.xml is a file where you can define and configure application server instances.

Default configurations

listener.xml is not created by Querix Package Manager.

By default, Lycia comes with two application instances:

So, if you do not create your custom listener.xml, Lycia default settings for the application server are:

How to create your custom listener.xml

If necessary, you can create your custom application server instances. For example, you need several custom application server instances if you use different working directories and different sets of environment variables for different projects.

If yes, you must create custom listener.xml where you will define and configure these custom application server instances.

When you create your custom listener.xml and define your custom application server instances, the default ones are disabled (and become unavailable).

To create custom listener.xml, please follow these steps:

Step 1. Close LyciaStudio (if necessary).

Step 2. Stop Lycia Web Server.

Step 3. Open your favorite text editor.

Step 4. Copy the template given below to a new text file.

Step 7. Start Lycia Web Server.

Step 8. Restart LyciaStudio (if necessary).

You can create as many application server instances as you need.

But all these instances must be added to one and the same listener.xml file.

If you want to keep one or both default application server instances and use them together with your custom ones, you must copy their definition to your custom listener.xml.

Template for your custom listener.xml

When you define your custom application server instances, you must set values to all the tags:

<xml>
  <service>
    <name>...</name>
    <applicationdir>...</applicationdir>
    <logdir>...</logdir>
    <envfile>...</envfile>
    <authmode>...</authmode>
    <auth_module>...</auth_module>
    <logging>...</logging>
    <description>...</description>
    <enabled>...</enabled>
    <basic_realm>...</basic_realm>
    <wait_for_client_to_connect>...</wait_for_client_to_connect>
  </service>
</xml>

If necessary, you can copy them from here.

When setting <auth_module></auth_module> for , you can use one or more of the authentication libraries supported by Lyciamodauthcrypt.so, modauthshadow.so, or modauthpam.so.

Tags for defining an application server instance

These are the tags with which define application server instances:

How to manipulate your application server instances

To modify an existing AppServer instance, please follow these steps:

Step 1. Close LyciaStudio (if necessary).

Step 2. Stop Lycia Web Server.

Step 3. Open listener.xml in any text editor.

Step 4. Introduce the necessary changes to one of the existing <service>...</service> blocks.

Step 5. Save the changes.

Step 6. Start Lycia Web Server.

Step 7. Restart LyciaStudio (if necessary).

 

To delete an existing AppServer instance, please follow these steps:

Step 1. Close LyciaStudio (if necessary).

Step 2. Stop Lycia Web Server.

Step 3. Open listener.xml in any text editor.

Step 4. Select and delete one of the existing <service>...</service> blocks.

Step 5. Save the changes.

Step 6. Start Lycia Web Server.

Step 7. Restart LyciaStudio (if necessary).

How to overwrite default (hardcoded) configurations for Content-Security-Policy directives

The default setting of the directives hardcoded in LyciaWeb.war:

default-src 'self'
script-src 'self' 'unsafe-inline' 'unsafe-eval' https: blob:
img-src * data:
frame-src *
connect-src * data: blob:
style-src * 'unsafe-inline'
media-src *
font-src *

Lycia installation maintainer can configure a global set of CSP directives, by setting custom policy values in:

<xml>
  ...
  <content_security_policy>...</content_security_policy>
  ...
</xml>

The global set above applies to every service in listener.xml.

 

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.