Spotfire® Server and Environment - Installation and Administration

Using the SpotfireRemoteIpValve to configure Spotfire Server with a load balancer or reverse-proxy

The recommended way to use a load balancer or reverse proxy in front of the Spotfire Server is to enable and configure SpotfireRemoteIpValve.

About this task

Using SpotfireRemoteIpValve, you can configure the standard Tomcat RemoteIpValve through the Spotfire Server configuration, for all servers in your clustered Spotfire environment. The properties described in the Tomcat documentation are configured as attributes using the set-config-map-prop as shown in the steps below.

Procedure

  1. Open a command-line interface and export the active configuration (the configuration.xml file) by using the export-config command. (For details on using the Spotfire command line, see Executing commands on the command line.)
  2. On the command line, enter the following commands:
    config set-config-prop --name=tomcat.remote-ip-valve.enabled --value=true
    and
    config set-config-map-prop --name="tomcat.remote-ip-valve.attributes" --item-name="attribute" -VprotocolHeader=X-Forwarded-Proto
  3. Import the configuration file back to the Spotfire database by using the import-config command.
  4. Restart the Spotfire Server.