[webserverjs]
Defines options for webserver.js, the Node.js-based web server running inside a JavaScript Manager.
[webserverjs] accessControlAllowOrigin
- Type
- string
Defines a list of URLs that are allowed origins for a CORS request. For each allowed URL, a separate line has to be added.
Example:
accessControlAllowOrigin = "https://redu1:8443"
accessControlAllowOrigin = "https://redu2:8443"
If this config entry is used, the config entry "httpHeader" must not used for HTTP header "Access-Control-Allow-Origin:".
[webserverjs] allowExternalResources
- Type
- bool
- Default
- 0
- Range
- 0|1
[webserverjs] canEditPermissionBit
- Type
- int
- Default
- 3
- Range
- 1..32
[webserverjs] canPublishPermissionBit
- Type
- int
- Default
- 4
- Range
- 1..32
[webserverjs] canWritePermissionBit
- Type
- int
- Default
- 4
- Range
- 0..32
[webserverjs] diskCheckDp
- Type
- string
- Default
- "_ArchivDisk"
[webserverjs] diskCheckLimit
- Type
- int
[webserverjs] favIcon
- Type
- string
- Default
- /pictures/StandardIcons/Console_20.png
[webserverjs] heartbeatSeconds
- Type
- int
- Default
- 5
[webserverjs] httpHeader
- Type
- string
- Default
- See Description
httpHeader = "X-XSS-Protection: 1; mode=block"
httpHeader = "X-Content-Type-Options: nosniff"
httpHeader = "Cache-Control: private"
httpHeader = "Cache-Control: must-revalidate"
To remove all entrys of the HTTP header (including the default values) following entry can be used:
httpHeader = "-empty list-"
Note: Mandatory header entries will not be removed.
[webserverjs] httpsPort
- Type
- int
- Default
- 8443
[webserverjs] indexPage
- Type
- string
- Default
- /data/index.html
[webserverjs] jwtWssPort
- Type
- uint
- Default
- 8443
- Range
- >0
[webserverjs] loginPermissionBit
- Type
- int
- Default
- 1
- Range
- 1..32
[webserverjs] resourceName
- Type
- string
- Default
- /websocket
[webserverjs] strictTransportSecurityMaxAge
- Type
- uint
- Default
- 31536000 (= ~1 year)
[webserverjs] tokenAutoRefresh
- Type
- bool
- Default
- 0
- Range
- 0|1
[webserverjs] tokenExpire
- Type
- uint
- Default
- 600
- Range
- 5..28800
[webserverjs] tokenExpireWarning
- Type
- uint
- Default
- 0
- Range
- 0, 5..600
[webserverjs] ulcUxHost
- Type
- string
- Default
- localhost
[webserverjs] ulcUxPort
- Type
- int
[webserverjs] wssServerAddress
- Type
- string
This entry defines external addresses where webserver.js can be reached (e.g. behind a proxy). This entry can be used more than once. The first address will be included in the authentification token and should correspond to the server that is running on the local system. All addresses will be used by clients to find alternative servers in case of a connection interruption.
If no such entry exists, the list of available servers will be kept up-to-date dynamically using the local server addresses.
[webserverjs] XFrameOptions
- Type
- string
- Default
- SAMEORIGIN
- Range
- none
A security measurement prevents to load content from a different website. This is called "clickjacking" protection.
To nevertheless load the content of the foreign server inside your own website the HTML Header parameter X-Frame-Options can be used to configure the expected behavior.
This parameter must be set on the remote server and contain the URL of your server to display the foreign content on your server.
There are 4 different options available for the XFrameOptions config entry:
- "none": is used to completely deactivate this option
- "DENY": Foreign content is not loaded.
- "SAMEORIGIN": Only content from your own server is loaded.
- "ALLOW-FROM": Only the content is loaded for which the X-Frame-Options HTML Header parameter is set correctly. Must be configured on the foreign server!
Example:
First server: www.myFirstServer.com
Second server: www.mySecondServer.com
To display the content from the second server within the first server (e.g. using an iframe) the second server must state the parameter "XFrameOptions: ALLOW-FROM http://www.myFirstServer.com" within the HTML header. This can be configured by setting following config entry within the config of the second webserver.
[webserverjs]
XFrameOptions = "ALLOW-FROM http://www.myFirstServer.com"
