Skip to main content

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):

Gateway

Name in config.html Name 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):

SCR-20230317-ifrq.png

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 Name 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 Name 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.