<commit_before>[[server-configuration]]
= Server configuration

The Dolphin Platform can simply be configured by a property file. To configure the server part of the Dolphin Platform
a `dolphin.properties`-file must be created in the `META-INF` folder. In a Maven based project the file would be defined
as `project/src/main/resources/META-INF/dolphin.properties`. This file must be defined as a regular Java property file.
Here is an example how such a file might look:
[source,txt]
----
openDolphinLogLevel=OFF
useCrossSiteOriginFilter=true
----

== Supported properties

Currently the following properties are supported by the Dolphin Platform:

.Table title
|===
|Name |Description |Supported values |Default value

|openDolphinLogLevel
|Defines the logging level for the remoting layer.
|off, severe, warning, info, config, fine, finer, finest, all
|severe

|useCrossSiteOriginFilter
|Boolean property that defines if the HTTP filter for the cross site origin policy should be used. By default the filter
will be used.
|true, false
|true

|useSessionInvalidationServlet
|Boolean property that defines if the servlet for session validation should be used. By default the servlet will not be used. We plan to remove the servlet completelly in a future release and this property is just for a fallback if not using the servelt will end in issues.
|true, false
|false

|servletMapping
|A string based property that defines the server URL endpoint for the Dolphin Platform.
|any String that defines an URL mapping
|/dolphin

|sessionTimeout
|A int that defines the http session timeout in seconds
|any integer value
|900
<commit_msg>Add documentation for cross-site-origin header configuration<commit_after>[[server-configuration]]
= Server configuration

The Dolphin Platform can simply be configured by a property file. To configure the server part of the Dolphin Platform
a `dolphin.properties`-file must be created in the `META-INF` folder. In a Maven based project the file would be defined
as `project/src/main/resources/META-INF/dolphin.properties`. This file must be defined as a regular Java property file.
Here is an example how such a file might look:
[source,txt]
----
openDolphinLogLevel=OFF
useCrossSiteOriginFilter=true
----

== Supported properties

Currently the following properties are supported by the Dolphin Platform:

.Table title
|===
|Name |Description |Supported values |Default value

|openDolphinLogLevel
|Defines the logging level for the remoting layer.
|off, severe, warning, info, config, fine, finer, finest, all
|severe

|useCrossSiteOriginFilter
|Boolean property that defines if the HTTP filter for the cross site origin policy should be used. By default the filter
will be used.
|true, false
|true

|accessControlAllowHeaders
|List of String headers which needs to be allowed with Access-Control-Allow-Headers for the cross site origin policy.
|Content-Type, x-requested-with, origin, authorization, accept, client-security-token
|Content-Type, x-requested-with, origin, authorization, accept, client-security-token

|accessControlAllowMethods
|List of Methods which needs to be allowed with Access-Control-Allow-Methods for the cross site origin policy.
|*
|*

|accessControlAllowCredentials
|Boolean property that allow Access-Control-Allow-Credentials for the cross site origin policy.
 are allowed
|true, false
|true

|accessControlMaxAge
|Long property that defines Access-Control-Max-Age for the cross site origin policy.
 are allowed
|timestamp Long value
|86400

|useSessionInvalidationServlet
|Boolean property that defines if the servlet for session validation should be used. By default the servlet will not be used. We plan to remove the servlet completelly in a future release and this property is just for a fallback if not using the servelt will end in issues.
|true, false
|false

|servletMapping
|A string based property that defines the server URL endpoint for the Dolphin Platform.
|any String that defines an URL mapping
|/dolphin

|sessionTimeout
|A int that defines the http session timeout in seconds
|any integer value
|900

{'fraction_non_alphanumeric': 0.0594859241126071, 'fraction_numerical': 0.0026927784577723377, 'mean_word_length': 5.116766467065868, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3868865', 'n_tokens_mistral': 1072, 'n_tokens_neox': 1033, 'n_words': 539}