4.1 – config.html
After opening the /config.html page, you have the possibility to configure all the important settings in SparkView.
Quick overview of the individual topics:
If you access the page from the localhost, no password is required to start the configuration. Outside the localhost, the management password must be entered.
Below you will find a descriptive overview of the different settings areas (tabs here). The name corresponds to the attribute name that can be written directly to the gateway.conf file.
Gateway
Name in config.html | Attribute in gateway.conf | Type | Default | Description |
---|---|---|---|---|
SSL (https and wss) | ssl | boolean | false | Enable/disable HTTPS/WSS. Can be true and false |
Port (Default is 80 or 443) | port | number | 8080 | Port on which SparkView is running |
Binding Address | bindAddr | string | "localhost" | Bind SparkView to a fixed IP address |
Network Level Authentication | credSSP | boolean | false | Enable/disable NLA. Can be true, false or auto |
Path of License File | license | string | "./license" | Full path to license file, including file name. Only for paid version. |
Upload License File | Upload a license file | |||
HTML Root Directory | html | string | "./html/" | HTML root directory. Printed files are stored in the "temp" subdirectory. Please make sure that SparkView has read and write permissions. |
Default Web Page | directoryIndex | string | "rdp.html;index.html" | Default page (inside the HTML directory) that is displayed after opening SparkView. |
Path of Log File | logfile | string | "gateway.log" | Full path to log file, including file name. |
Size of Single Log File (bytes) | maxbytes | number | 30720000 | Maximum size of a log file (please specify in bytes) |
Maximum number of Log Files | maxfiles | number | 99 | Maximum number of log files. |
Log HTTP header | logHttpHeader | boolean | true | Log HTTP header. This may contain sensitive information such as passwords. |
PDF Converter | converter | string | Full path to the Postscript to PDF converter. Ghostscript (https://ghostscript.com/releases) is recommended. | |
PDF Converter Arguments | arguments | string | "-dBATCH -dNOPAUSE -dPDFSETTINGS=/printer -sDEVICE=pdfwrite -q -sOutputFile=%1 %2" | Arguments for the Postscript to PDF converter. %1 is the name of the output PDF file. %2 is the name of the input PS file. |
Plugin Class | plugin | string | Class name for a custom plugin. | |
Administration Password (for reporting API etc) | password | string | "password" | Management password for configuration, reporting and API. |
Enable Remote Management/Configuration | remoteManage | boolean | false | Enable/disable remote management from outside the localhost. |
Temporary directory (for downloading/uploading) | tmpdir | string | Parent directory for temporary files. | |
Days of temporary files are kept | keepDays | number | 1 | How many days temporary files should be kept by the system. |
RD Web Access Webfeed | webfeed | string | Remote desktop web feed URL, for RD web access integration. | |
Session Recording | recording | number | Enable/disable session recording. Can be 1 (record graphics only) or 2 (record graphics and sound) | |
Directory for saving session recordings | recdir | string | Directory for saved session recordings. | |
Warn user about session recording | recwarning | boolean | true | Warn users about session recording. |
Access Not-In-List computers after logged in | accessNotInList | boolean | false | Whether users can reach computers and servers that are not shared with them or in the web feed. |
Name of Redirected Drive | disk | string | Name for the shared disk, used for file upload/download. | |
Name of Redirected Printer | printer | string | "Remote Printer from Client" | |
Connections are queued (Backlog) | backlog | number | 50 | How many client connections can be queued. |
User Definition File | user | string | "./data/users.json" | Full path of the users definition file, including file name. |
Server Definition File | server | string | "./data/servers.json" | Full path of the servers definition file, including file name. |
Gateway Web Address | webAddress | string | HTTP address of the web server for OpenID login (redirect). Also in use for client side to get the real gateway address (in case of multiple gateways and load balancing). | |
Host Name of Client User | clientHost | string | Customize the host name of the client user. For more information and possible parameters see section 3.1, "clientHost". | |
Rdp Session Performance Flags | performanceflags | number | 111 | RDP performance flags. Please see section 3.4 for more information. |
RemoteFX | remotefx | boolean | false | Enable/disable RemoteFX. Works only with LAN and 32 bit. |
DNS Lookups | enableLookups | boolean | false | Enable to make calls perform DNS lookups to get the actual hostname of the remote client. Disable to skip DNS lookups and instead return the IP address in the form of a string (which improves performance). |
Session cache time (minutes, 0 = disable session cache) | maxCacheTime | number | 0 | How long sessions should be cached on the gateway (in minutes). 0 disables the RDP session cache. |
Email SMTP Host | mail.smtp.host | string | SMTP host for outgoing emails. You can use java -cp SparkGateway.jar com.toremote.gateway.Mailer title message to send a test email. | |
Email SMTP Port | mail.smtp.port | number | SMTP port for outgoing emails | |
Email User | mail.user | string | SMTP user for outgoing emails | |
Email Password | mail.password | string | SMTP password for outgoing emails | |
Email From | mail.from | string | Outgoing emails: From | |
Email to | mail.to | string | Outgoing emails: To | |
Email SMTP Authentication | mail.smtp.auth | boolean | Server requires authentication | |
Email TLS | mail.smtp.starttls.enable | boolean | Enable/disable STARTTLS | |
Symlink | symlink | string | Full path of the symlink definition file, including file name. | |
License Usage Alert (Email) | licenseAlert | number (float) | Receive an alert by email when the license usage value reaches this value: Value < 1: Usage value as a percentage of the current license. (e.g.: 0.75 = when 75% usage is reached). Value > 1: Value in use as actual concurrent connections (e.g.: 394 = if 394 concurrent connections in use). |
|
Interval of thumbnail (milliseconds) | thumbnail.interval | number | 0 | Interval for receiving thumbnails of the RDP session (in milliseconds). If 0, the client will not send a thumbnail to the server if there are no changes. |
Width of thumbnail | thumbnail.width | number | 0 | Thumbnail width (in pixels), must be smaller than 640. 0 = no thumbnail. |
Copy timeout (milliseconds) | copyTimeout | number | 3000 | Timeout for clipboard redirection (in milliseconds). This value should be increased if you need to copy very large data in your application. |
Path of Key Store | keyStore | string | Full path of the keystore file, including file name. Set up keystore or certificate name when ssl is true. For example keystore.jks or cert.pfx .If you are using a certificate (i.e. cert.pfx ), a password is required (see keyStorePassword).If you are using a Java keystore (i.e. keystore.jks ), the password of the keystore must match the one used for the certificate, which is integrated in the keystore. |
|
Password of Key Store | keyStorePassword | string | Keystore or certificate password. If you are using a Java keystore (i.e. keystore.jks ), the password of the keystore must match the one used for the certificate, which is integrated in the keystore. |
|
Password Encryption | passwordEncrypted | boolean | false | Encrypt the keystore, management and reporting password. Please use following command to get encrypted password:java -cp SparkGateway.jar com.toremote.gateway.Encryption MyPassword |
Remote Assistance | assistance | boolean | false | Enable/disable remote assistance. |
SSH | ssh | boolean | false | Enable/disable SSH. |
TELNET | telnet | boolean | false | Enable/disable Telnet. |
Disable Burst License | disableBurstLicense | boolean | false | Enable/disable burst license model. |
License status | Displays the current license status. |
Server
Here you can see a list of all created servers. If you want to add a new server, just click the "Add" button.
To edit an existing server, simply click on the edit icon (1 in the image), to delete a server, click on the delete icon (2 in the image):
After you click the "Add" button to add a new server, you will get a modal window with the following settings options and tabs. The entries can be included directly in the servers.json in addition to the UI version.
Name in config.html | Attribute in servers.json | Type | Default | Description |
---|---|---|---|---|
ID | id | string | ID for the server, must be unique. | |
Display Name | displayName | string | Display name for the server | |
Server | server | string | Host name or IP address of the server | |
Icon | icon | string | Image file for the server, which is displayed as an icon in the SparkView portal. Please specify the full path incl. filename here. | |
Protocols | protocols | string | "rdp" | Protocols to use for the server. It is recommended to set a new server entry for each protocol. |
RDP
Name in config.html | Attribute in servers.json | Type | Default | Description |
---|---|---|---|---|
Port | port | number | 3389 | RDP port to use |
User | username | string | User name (optional, since solved via users/users.json) | |
Password | password | string | Password (optional, since solved via user/users.json) | |
Domain | domain | string | Domain where the RDP server is located | |
Console session | console | boolean | false | Establish console session with RDS |
VirtualBox RDP or xrdp | legacyMode | boolean | false | Use XRDP instead of RDP protocol. Can be used for legacy servers and applications, or Linux distributions. |
Keyboard Layout | keyboard | number | Keyboard layout to use. See chapter 3.4 for a layout list. | |
Color Depth | color | number | 16 | Zu verwendende Farbtiefe |
Minimum Width | minWidth | number | Minimum width of the remote RDP window. Normally, this field should not be filled in, because the dimensions are detected automatically. | |
Minimum Height | minHeight | number | Minimum height of the remote RDP window. Normally, this field should not be filled in, because the dimensions are detected automatically. | |
Start Program on Connection | command | string | After the connection is established, directly launch an installed program on the remote desktop/server. | |
Start in following folder | directory | string | Start the program to be launched in a specified folder. | |
RemoteApp Exe or file | remoteProgram | string | Start only one application via RemoteApp instead of an entire desktop environment. Please specify the entire path incl. file name. | |
RemoteApp Arguments | remoteArgs | string | Arguments to be transferred to the starting RemoteApp | |
Wake On Lan Mac Address | mac | string | Mac address of the allowed Wake On Lan device. Empty/not set = no Wake On Lan. | |
Wake On Lan Broadcast IP | macIP | string | Broadcast IP address of the allowed Wake On Lan devices | |
Clipboard Redirection | mapClipboard | boolean | false | Enable/disable clipboard redirection |
Sound Redirection | playSound | number | 0 | Enable/disable sound playback. 0 = Play sound on this computer; 1 = Do not play sound; 2 = Play sound on the remote computer. |
Audio Recording | audioRecord | boolean | false | Recording of all audio tracks of the remote computer. |
RDP 6.1 Decompression | decompressingRDP61 | boolean | false | Enable/disable RDP 6.1 Compression. The RDP 6.1 bulk compression technique produces better compression ratios than the RDP 6.0 bulk compressor, but also consumes significantly more memory, which can affect scalability of multi-user servers. This compressor is only used for server-to-client traffic (it is not used for client-to-server traffic). |
Printer Redirection | mapPrinter | boolean | false | Activate/deactivate (virtual) printer forwarding. |
Session Recording | sessionRecord | number | 0 | Enable/disable session recording. 0 = no session recording; 1 = record graphics only; 3 = record graphics and sound. |
Drive Redirection | mapDisk | boolean | false | Enable/disable disk redirektion. |
Drive 0 - Dos Name | disks.dosName | string | For the 1st disk: DOS name | |
Drive 0 - Path | disks.devicePath | string | For the 1st plate: Full path to the plate | |
Drive 0 - Actions | disks.actions | number | 7 | For the 1st plate: permissions in the octal procedure |
Drive 1 - Dos Name | disks.dosName | string | For the 2nd disk: DOS name | |
Drive 1 - Path | disks.devicePath | string | For the 2nd plate: Full path to the plate | |
Drive 1 - Actions | disks.actions | number | 1 | For the 2nd disk: enable/disable redirect |
Drive 2 - Dos Name | disks.dosName | string | For the 3rd disk: DOS name | |
Drive 2 - Path | disks.devicePath | string | For the 3rd plate: Full path to the plate | |
Drive 2 - Actions | disks.actions | number | 1 | For the 3rd disk: enable/disable redirect |
Performance Flags | performanceflags | number | 111 | Performance flags for this connection. For more information about the performance flags, see chapter 3.4. |
Network Level Authentication (credSSP) | credSSP | number | 0 | Enable/disable NLA. 0 = no NLA; 1 = enable NLA; 2 = automatically detect NLA based on server settings. |
RemoteFX (32 bit color only) | remotefx | boolean | false | Enable/disable RemoteFX. RemoteFX only works with a color depth of 32 bit and under LAN. |
Smart Card Redirection | smartCard | boolean | false | Enable/disable Smart Card Redirection. |
Camera Redirection | mapCamera | boolean | false | Enable/disable camera/webcam redirection. |
USB Redirection | mapUSB | boolean | false | Enable/disable USB Redirection. |
Load Balance Info | loadBalanceInfo | string | Load balance information for the use of multiple gateways. |
VNC
Name in config.html | Attribute in servers.json | Type | Default | Description |
---|---|---|---|---|
Port | port | number | 5900 | VNC port to use |
Password | password | string | Password (optional, since solved via user/users.json) | |
Encoding | encoding | number | 16 | Coding for the VNC connection. Can be 16 (ZRLE), 7 (Raw) or 0 (Tight). |
JPEG Quality | quality | number | 5 | Quality of the transferred images (in JPEG format). Significantly affects the performance. |
ZIP/Tight Compression | compression | number | 6 | Level of compression. Significantly affects the performance. |
Use CopyRect encoding | UseCopyRect | boolean | true | Enables/disables CopyRect Encoding. The CopyRect encoding is efficient when something is being moved. CopyRect could also be used to efficiently transmit a repeated pattern. |
Colors | color | number | 32 | Displayed colors during the VNC connection. 256 colors should be used for slow connections with limited bandwidth. |
Share the server | share | boolean | true | Share the session with other viewers. |
Clipboard redirection | mapClipboard | boolean | true | Enables/disables clipboard redirection. |
Session Recording | sessionRecord | number | 0 | Enable/disable session recording. 0 = no session recording; 1 = record graphics only; 3 = record graphics and sound. |
SSH
Name in config.html | Attribute in servers.json | Type | Default | Description |
---|---|---|---|---|
Port | port | number | 22 | SSH port to use |
User | username | string | User name (optional, since solved via user/users.json) | |
Password | password | string | Password (optional, since solved via user/users.json) | |
Font Size | fontSize | number | 13 | Font size used in the displayed terminal. |
Clipboard | mapClipboard | boolean | true | Enables/disables clipboard redirection. |
Session Recording | sessionRecord | number | 0 | Enable/disable session recording. 0 = no session recording; 1 = record graphics only; 3 = record graphics and sound. |
Key File | keyfile | string | Full path to the key file in PEM format incl. file name. For more information on SSH authentication via keys, see chapter 5.7. | |
Password of Key File | keyfilePwd | string | Key file password | |
Terminal Type | terminalType | string | "xterm" | Terminal type |
Telnet
Name in config.html | Attribute in servers.json | Type | Default | Description |
---|---|---|---|---|
Port | port | number | 23 | Telnet port to use |
Font Size | fontSize | number | 13 | Font size used in the displayed terminal. |
Clipboard | mapClipboard | boolean | true | Enables/disables clipboard redirection. |
Session Recording | sessionRecord | number | 0 | Enable/disable session recording. 0 = no session recording; 1 = record graphics only; 3 = record graphics and sound. |
HTTP
Name in config.html | Attribute in servers.json | Type | Default | Description |
---|---|---|---|---|
Scheme | scheme | string | "https" | Scheme used. Only HTTP and HTTPS are possible here for the time being. |
Port | port | number | 443 | HTTP/S port to use |
Path | path | string | Full path to the application/page within the HTTP/S page. |
User
With SparkView, you basically have several options to integrate users:
- Local user database
- Connection through Azure AD, Active Directory or LDAP
- Connection through RADIUS
You can use config.html to import users from an Active Directory (once) and create users manually from the beginning. Please make connections to Azure AD, Active Directory, LDAP or RADIUS directly in the servers.users.json file.
To import users from Active Directory, enter all the details in the fields provided and then click the Import Active Directory Users button:
To add users manually, click the "Add" button. Then you have the following configuration options. The name corresponds to the attribute name, which can be written directly to the users.json file.
Name in config.html | Attribute in users.json | Type | Default | Description |
---|---|---|---|---|
Name | name | string | Username (recommended without special characters and spaces) | |
Password | password | string | Password of the user. If it is a domain user, enter *** as the password. |
|
Servers | servers | array | Shared servers for the user. Enter the server IDs comma-separated and without spaces, or select them from the list. | |
Domain user | isDomainUser | boolean | false | Specify whether the user is a domain user. |
Domain Server | domainServer | string | Full address of the domain server | |
Transfer Credential to Connection | transferCredential | boolean | false | Forward connection data to the connecting targets. For this purpose, the user name and password entered here must match the access data on the target device. |
Host Name (RDP) | clientHost | string | Displayed name of the client/user for RDP connections. |
In the list view, users can be edited via the edit icon (1) and deleted via the delete icon (2).
Symlink
Symlinks can be created and used for direct connection of targets. The symlinks are stored inside SparkView in the /data/symlink.json
file. Click the "Add" button to add a new symlink. You will then get a modal window again with the following configuration options:
Name in config.html | Attribute in symlink.json | Type | Default | Description |
---|---|---|---|---|
ID | id | string | Dynamic value | Unique ID of the symlink. This ID is generated automatically and should not be changed. |
Password | password | string | Password that is given to the symlink as a parameter. | |
Resource (Server) | resourceId | string | ID of the target system. Can be entered manually or selected from the list. | |
Valid From | validFrom | string | Validity of the symlink: From when | |
Valid Time | validTime | string | Validity period of the symlink, e.g. "2d". y = year; M = month; d = day h = hour; m = minute. | |
or Valid To | validTo | string | Alternatively to the validity period: Until when | |
Parameters for target | parameters | string | Additional parameters for the symlink. To be entered in URL-encoded form (e.g. user=userName&domain=local). | |
Comment | comment | string | Comment that is displayed in the edit view. | |
Access link | Using the Access link, you can call the symlink directly from the form and the symlink does not have to be saved first. |
In the list view, symlinks can be edited via the edit icon (1) and deleted via the delete icon (2).
Session
In SparkView können Sie über den Session-Tab alle aktiven Session beobachten. Außerdem können Sie über eine JavaScript Konsole Nachrichten an einzelne oder alle Session schicken:
sparkConfig.notify('My message');
→ Sendet eine Nachricht an alle aktiven Sessions.
sparkConfig.notify('My message', [123456789, 123456788]);
→ Sendet eine Nachricht an die aktiven Sessions „123456789“ und „123456788“.
Server Group
Individual servers can be grouped into server groups for better and easier organization. The created server groups are stored in SparkView in the /data/servergroups.json
file.
To add a new server group, click the "Add" button. You will then get a modal window again with the following configuration options:
Name in config.html | Attribute in servergroups.json | Type | Default | Description |
---|---|---|---|---|
Name | name | string | Name of the server group | |
Servers | servers | array | Servers to be entered into the server group. The server IDs are entered comma-separated, or selected with the help of the list. |
In the list view, server groups can be edited via the edit icon (1) and deleted via the delete icon (2).
User Group
Individual users can be grouped into user groups for better and easier organization. User groups can be given access to server groups. The created user groups are stored in SparkView in the /data/usergroups.json
file.
To add a new user group, click the "Add" button. You will then get a modal window again with the following configuration options:
Name in config.html | Attribute in usergroups.json | Type | Default | Description |
---|---|---|---|---|
Name | name | string | User group name | |
Users | users | array | Users to be entered into the user group. The user IDs are entered comma-separated, or selected with the help of the list. | |
Server Groups | servers | array | Server groups to which the user group should have access. The server group IDs are entered comma-separated, or selected with the help of the list. |
In the list view, user groups can be edited via the edit icon (1) and deleted via the delete icon (2).