Pilot Data Server Administrator Guide

Version PDS-9.1 | Published June 26, 2024 ©

Crop Server and Script Runner

Configuring Script Runner

Script Runner is Viz Pilot’s update service that lets you update template data, such as stock values and player statistics, right before going on air.

Note: You can write Visual Basic In Pilot scripts to modify the data, and the scripts run on the Script Runner. It is also possible to create your own external update service. For more information, see External Update Service in the Media Sequencer Manual bundled with the software.

Use Secure Communication

Script Runner can be configured to use the SSL transport layer when communicating. Click Settings > Script Runner Service to enter the configuration UI.

images/download/attachments/158788798/image-2024-5-10_15-1-7.png

To configure Script Runner for SSL communication:

  1. Check Use HTTPS.

  2. The default port suggested is 1982. This can be changed, but it is recommended to use this port.

  3. Configure a certificate by either entering a path to the *.pfx file or picking a certificate from the file system.

  4. Enter the certificate password.

  5. Click Apply to register the certificate information.

  6. Click Save.

  7. Restart the Script Runner Service.

Server Certificates and PFX Files

A server certificate, typically issued by a trusted Certificate Authority (CA), contains the server's public key and identifying information. Adding a certificate for Script Runner or Crop Service is done by importing a PFX file . PFX (Personal Information Exchange) file, also known as PKCS#12. A PFX file consolidates the server certificate, its private key, and any intermediate and root certificates into a single, secure, password-protected file.

Note: Viz Pilot and Media Sequencer with an Oracle backend, do not support Script Runner on HTTPS.

Configure the HTTP port

The Script Runner uses port 1981 by default for HTTP. To change the port:

  1. On the Pilot Data Server machine, open the configuration file in a text editor: %ProgramFiles%\vizrt\Data Server\PilotScriptRunnerHostService.exe.config.

  2. Change the port by modifying the following line:

    <setting name="DefaultPort" serializeAs="String">
    <value>1981</value>
    </setting>
  3. Save the file.

  4. Restart the Vizrt Script Runner service from the Windows Services window.

Configuring Crop Server

Vizrt Crop Server is a service that makes it possible to crop images on-the-fly. It is provided in a separate installer, but if installed on the same machine as Pilot Data Server, the Launcher settings can be used to configure secure communication (HTTPS) for the Crop Server.

Use Secure Communication

Crop Server can be configured to use the SSL transport layer when communicating. Click Settings > Crop Service to enter the configuration UI.

images/download/attachments/158788798/image-2024-5-30_10-29-8.png

To configure Crop Service for SSL communication:

  1. Check Use HTTPS.

  2. The default port suggested is 8179. This can be changed, but it is recommended to use this port.

  3. Configure a certificate by either entering a path to the *.pfx file or picking a certificate from the file system.

  4. Enter the certificate password.

  5. Click Apply to register the certificate information.

  6. The Pilot Data Server URL should point to where the service document of Pilot Data Server is expected to be. For a HTTPS setup this would normally be https://localhost/7373.

  7. Click Save.

  8. Restart the Crop Service.

Proxy

If Crop Service is placed behind a reverse proxy like Caddy or HAProxy, the base path must be configured to match the sub path of the proxy URL. For instance, if the crop service is served out under the proxy address https://proxy.com:443/vizrt/cropserver, then the base path should be set to vizrt/cropserver. Proxy protocol, host and port are transported through HTTP headers, but base path must be explicitly configured.

Pilot Database Settings

In the Pilot Database settings, the crop_service_uri should point to the machine on which you installed Pilot Data Server: http://< cropservicehostname >: 8178/.

Optional: Set the croptool_max_image_area to adjust the maximum size of a cropped image that is served by Pilot Data Server. If the image size is larger than croptool_max_image_area, then the image is resized while still respecting the aspect ratio of the crop. The maximum image size applies even if no cropping is done.

Image size = image width x height in pixels.

Configure the HTTP Port

The Crop Service uses port 8178 by default for HTTP. To change the port:

  1. On the Crop Service machine, open the configuration file in a text editor: %ProgramFiles%\vizrt\Crop Service\PilotCropServiceHostService.exe.config.

  2. Change the port by modifying the following line:

    <setting name="DefaultPort" serializeAs="String">
    <value>8178</value>
    </setting>
  3. Save the file.

  4. Restart the Vizrt Crop Server service from the Windows Services window.