Categories
User Guides Categories exacqVision Webservice Products

Updating an exacqVision System Without Internet Connection Using Web Server

The Update tab on the ‘Configure System’ page in the exacqVision Client allows you to update an exacqVision server’s software. If the system is on a closed network with no internet access, the update can still be provided by using an exacqVision Web Server.

The exacqVision Web Service can be downloaded and installed from our Software Downloads page if you do not already have a web server configured.

To prepare the service with a local manifest file and update, use the steps below:

1) Export your server license list.

From the Systems list page in the exacqVision Client, click on the ‘Export Licenses’ button. Save the file.

2) On a machine that has internet access, go to https://exacq.com/support/downloads.php

3) Scroll towards the bottom of the page and expand the menu labeled, ‘Software Updates Packaging Utility’.

Click on the link to access and create the package.

4) Click on the ‘Upload License File’ button and select the ‘licenses.csv’ file you created in Step 1.

     Or, you may click on the ‘Recent Software Versions’ button.

     Using the license file will provide you with relevant versions if any of your systems have expired license subscriptions.

5) Once you’ve uploaded the CSV file, check mark the installers you wish to download.

     Click the ‘Zip Selected Files’ button. Please be patient as it may take several minutes to package the installers chosen.

6) When the process has completed, select ‘Click to Download Packaged Files’.

7) Transfer this Zip file to the machine running your exacqVision Web Service by copying it to USB flash drive or CD/DVD.

8) On the machine running your exacqVision Web Service, unpack the contents of the Zip file.

After unpacking the files, copy them to the following directory:

Windows 64-bit: C:\Program Files\exacqVision\WebService\htdocs
Windows 32-bit: C:\Program Files (x86)\exacqVision\WebService\htdocs
Ubuntu/Linux: /var/www

9) Open the ‘evFileInfo.txt’ file to edit it.

This file has a block of text for each installer. Locate the line beginning with ‘Link=’.

Edit this line to provide the file path to your downloaded installers in the following format:

http://IPADDRESS/static/FILENAME where IPADDRESS is replaced by your machine’s IP address

Example: If the line reads, ‘Link=http://cdnpublic.exacq.com/9.4/exacqVisionServer_9.4.3.136542_x64.exe’

Change it to read, ‘Link=http://192.168.0.5/static/exacqVisionServer_9.4.3.136542_x64.exe’

Change the ‘Link’ line for each block of text in this file, then Save the file and exit.

10) In the exacqVision Client, open the ‘Configure System’ page and select the ‘Update’ tab.

11) Check the ‘Show Advanced Options’ box. 

12) In the ‘Location’ box, enter the address of your exacqVision Web Service with path to ‘evFileInfo.txt’. 

http://IPADDRESS/static/evFileInfo.txt

     Replace IPADDRESS with the IP address to your system. 

13) Press ‘Check for Updates’.

14) Using the drop-down menu, select the Version to install.

15) Press the ‘Update’ button to perform the update. 

<br>

Updating-an-exacqVision-System-Without-Internet-Connection-Using-Web-Server.pdf
Categories
Knowledge Support Support Categories exacqVision Webservice Products

Redirecting HTTP to HTTPS with Web Sevice 9.0 – 19.06

NOTE: This document does not apply to Web Service versions 19.09 and higher.

Best Practice is to use the latest version of Web Service available.


The way the web service handles HTTP requests when HTTPS is configured can be controlled with the webserver.tls.httpPolicy key:

Open the following file in a text editor:

Windows: C:\ProgramData\Webservice\conf\wfe.json
Linux: /etc/webservice/wfe.json

Add the “httpPolicy” line as shown below.

{<br>
    "webserver": {<br>
        "listen": 80,<br>
        "tls": {<br>
            "listen": 443,<br>
            "httpPolicy": "redirect",<br>
            [...]<br>
        }<br>
    }<br>
}

The key can be one of the following values:

  • “redirect” will cause HTTP traffic to be redirected to HTTPS
  • “disable” will reject any requests not sent over HTTPS

NOTE: This key will only take effect if after a Web Service restart, and if SSL is configured.

<br>

Categories
exacqVision Webservice Linux exacqVision Webservice Windows exacqVision Webservice Windows x64 exacqVision Webservice Linux x64 User Guides Documentation Categories exacqVision Webservice Products

Configuring Nginx or Apache as a Web Service Gateway

Description

The 9.0 release of the web service has replaced Apache with an in-house developed web frontend (WFE) for handling API requests. Certain users may wish to configure a gateway web server to enforce custom policies.

The following provides users with a reference for configuring either Nginx or Apache as a gateway. Additionally, it describes various undocumented settings in the new frontend configuration should the user need to modify them.

<br>

Gateway Configuration

The following sections explain how to set up Nginx or Apache to proxy requests to the web service. For the purposes of this guide, it is assumed the gateway server will be installed on the same machine as the web service and the service is listening on port 8080. The gateway must use a different listening port number than the ExacqVision Web Service.

Note: You may wish to backup the existing host files if they exist.

<br>

Nginx

Edit the virtual hosts file, located in:

Windows:
C:\nginx\conf\sites-available\default

Linux:
/etc/nginx/sites-available/default

with the following configuration:

server {
    listen 80 default_server;
    server_name localhost;

    location / {
        proxy_pass http://127.0.0.1:8080;
    }
}

<br>

Apache

NOTE: The installation directory for Apache on Windows will vary based on how it was installed.

  1. Run the OS-specific command to enable the necessary modules for Apache.

Windows:
Ensure the following lines in <apache install directory>\conf\httpd.conf are UNcommented; they do NOT begin with a ‘#‘.

  • LoadModule proxy_module modules/mod_proxy.so
  • LoadModule proxy_http_module modules/mod_proxy_http.so
  • LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
  • LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so<br>

Linux:
Open Terminal, by pressing CTRL+ALT+T and run the following commands:

  • sudo a2enmod proxy
  • sudo a2enmod proxy_http
  • sudo a2enmod proxy_balancer
  • sudo a2enmod lbmethod_byrequests<br><br>
  1. Edit the virtual hosts file with the following configuration:

    <VirtualHost *:80>
        ProxyPreserveHost On

        ProxyPass / http://127.0.0.1:8080/
        ProxyPassReverse / http://127.0.0.1:8080/
    </VirtualHost>

NOTE: You MUST have the ‘/’ at the end of each address, unlike Nginx.<br><br>

  1. Apache and Nginx will require restart before they can accommodate proxy requests.

<br>

Modifying the Web Frontend (WFE) configuration

The configuration for WFE contains several options that are omitted by default. These options can be used to place additional constraints on the web service if necessary.

The configuration file, which is stored as JSON, is located at:

Windows:
C:\ProgramData\Webservice\conf\wfe.json

Linux:
/etc/webservice/wfe.json

If you wish to restrict the service to listen for HTTP requests on a particular NIC, you can do so by specifying the NIC’s address using the webserver.address key:

{
    "webserver": {
        "listen": 8080,
        "address": 192.168.1.115,
        [...]
    }
}

NOTE: If the target is an IPv6 address, you MUST enclose the address in square brackets [ ].

<br>

The same can be done for HTTPS requests with the webserver.tls.address key:

{
    "webserver": {
        "listen": 8080,
        "tls": {
            "listen": 443,
            "address": [fe80::...],
            [...]
        }
    }
}

<br>

The way the web service handles HTTP requests when HTTPS is configured can be controlled with the webserver.tls.httpPolicy key:

{
    "webserver": {
        "listen": 8080,
        "tls": {
            "listen": 443,
            "httpPolicy": (redirect|disable),
            [...]
        }
    }
}

The key can be one of the following values:

  • redirect” will cause HTTP traffic to be redirected to HTTPS
  • disable” will reject any requests not sent over HTTPS

NOTE: This key will only take effect if SSL is configured.

<br>

Categories
Knowledge Support Support Categories exacqVision Webservice Products

Unable to Start Web Service on Windows 10

Problem

Users installing the exacqVision web service on Windows 10 machines find that the exacqVision web service is not enabled and encounter errors when attempting to manually start the service.

<br>

Cause

This is due to a port conflict. The default port used by evApache is port 80. This is also the default port for most web services. Windows 10 contains a service which is enabled by default that binds to port 80 before evApache attempts to start and since two services cannot bind to the same port number, evApache and the exacqVision web service fail to start.

<br>

Resolution

There are two possible ways to work around this.

  1. Open Services.msc in Windows and locate the ‘World Wide Web Publishing Service’. Stop this service and change the start up type to ‘Disabled’. You may also consider disabling the IIS service if it is installed on your machine. After these changes have been made you may either reboot your machine or manually start the exacqVision web service.
  2. Manually change the port number to something other than the default of 80. This requires editing a configuration file in Apache. You may find instructions on this in the following knowledge base article: 42205

<br>

Unable-to-Start-Web-Service-on-Windows-10.pdf
Categories
Knowledge Support Support exacqVision Enterprise exacqVision Client exacqVision Server exacqVision Mobile exacqVision Webservice Categories Products

Exacq Software/Service Connections Diagram

This diagram illustrates how the various Exacq applications work together and the ports used to communicate.

Internal (LAN)

Remote (WAN)

In cases where external users plan to connect for remote monitoring, you will may need to configure port forwarding on your router to allow traffic on those ports to pass through. exacqVision provides several ways to connect to your system from outside of your site’s LAN.

  • The Desktop Client software requires port forwarding.
  • Users of the exacqVision Mobile app may configure port forwarding or use the Remote Connectivity feature, configured within the Desktop Client.
  • Users connecting with the Web Browser Client or the Exacq Mobile 3 app may configure port forwarding, or use the Relay Service, configured within the exacqVision Web Service.

Remote Management

In the case of the Integrator Service Portal (ISP), this may connect to the server using an inbound connection to port 22609, or the server may be configured for an outbound connection to reach out to the ISP.

Additional Links

See also: exacqVision Default Ports

See also: Example Network Diagram for Multi-NIC Systems

<br>

Categories
Knowledge Support Support exacqVision Webservice Categories Products

Web Service notes for M-Series performance

The following settings are recommended for ensuring the best performance of the web service on the M-Series:

  1. Start License: Change the recording format of each camera to “JPEG”.
  2. Pro License: Add a secondary stream for each camera, setting the recording format of the secondary stream to “JPEG”. Note: It may be necessary to create a view containing these secondary streams to access them via the web service.

<br>

Web-Service-notes-for-M-Series-performance.pdf
Categories
Knowledge Support Support exacqVision Webservice Categories Products

How to use the Surf web-browser on M-Series recorders

The M-Series recorders from exacqVision come with a web browser called Surf. Surf is a very basic web browser that is well suited to the capabilities of the M-Series recorder. Surf doesn’t have any window controls (address bar, back-button, etc.), so common browser tasks are accomplished with shortcut keys.
Surf can be launched using the Terminal with the following command:

For example:

Refer to the following table for Surf usage details.

Ctrl-h

Walks back the history


Ctrl-l


Walks forward the history


Ctrl-k


Scrolls page upwards


Ctrl-j


Scrolls page downwards.


Ctrl-b


Scroll up one whole page view


Ctrl-Space


Scroll down one whole page view


Ctrl-i


Scroll horizontally to the right


Ctrl-u


Scroll horizontally to the left


Ctrl-Shift-k


Zooms page in


Ctrl-Shift-j


Zooms page out


Ctrl-Shift-q


Resets Zoom


Ctrl-p


Loads URI from primary selection


Ctrl-r


Reloads the website


F11


Toggle fullscreen mode

<br>

How-to-use-the-Surf-web-browser-on-M-Series-recorders.pdf
Categories
Knowledge Support Support exacqVision Webservice Categories Products

Configuring HTTPS for ExacqVision Web Service

Version 8.4 and Higher


Using the provided Web Service configuration UI you are able to configure HTTPS support.

  1. Login to the configuration Interface here: http://127.0.0.1/service.web
  2. Click on the ‘Configuration’ link in the left hand navigation bar. This will expand with more options.
  3. Click on the ‘HTTPS’ link.
  4. Click on the ‘Configure’ button.
    If you already have an SSL certificate and private key (e.g. purchased from DigiCert, Thawte, GoDaddy, etc) choose External.
    Select “Let’s Encrypt / ACME” to provision a certificate and private key automatically. NOTE: There are prerequisites that have to be met to use this option.
  5. Follow the instructions for the chosen configuration below

<br>

Configuring HTTPS using an External Certificate

IMPORTANT: Wildcard certificates cannot be uploaded through the exacqVision Web Service administration interface. However, they may be used when manually configured. See Manually Configuring HTTPS for Web Service Certificate and Key Path for details.


NOTE: Both the certificate and private key must be PEM encoded. The private key should be in RSA format.

  1. Click on the File button next to the Certificate input and select the certificate to upload.
  2. Click on the File button next to the Private Key and select the corresponding private key to upload.
  3. (Optional) If you were given a certificate chain from your certificate provider click the File button next to the Certificate Chain input and select the chain certificate to upload.
  4. Click Apply to upload the files.
  5. Follow the prompts to restart the Web Service for the changes to take effect.
  6. (Optional) Modify the External URL of your Web Service to use HTTPS.
    • This option is found under Configuration | Basic

      NOTE: If you do not see any File buttons then you are using an older browser. Instead paste the contents of each file into the large text boxes provided.

<br>

Configuring HTTPS using Let’s Encrypt / ACME Server

Please check that the following prerequisites are met before proceeding.

A. Your Web Service is configured and running on the standard port (80)
B. Your Web Service is accessible over the internet at the domain name(s) you wish to provision a certificate for.

  1. In the input under Domain Name enter the domain name you wish to provision a certificate for.
  2. (Optional) If you have any Subject Alternative Names to add to the certificate enter them into the input under Subject Alternative Name(s)
  3. Click Apply
  4. A dialog should popup with the status of your request. Provisioning a certificate may take a few minutes, please be patient.
  5. If a certificate was issued successfully follow the prompts to restart the Web Service for the changes to take effect.
    • If an error is encountered attempt to solve the underlying issue before retrying. The production Let’s Encrypt service will rate limit you if you attempt too many times in a row. See https://letsencrypt.org/docs/rate-limits/ for more information.
  6. (Optional) Modify the ExternalURL of your Web Service to use HTTPS.
    • This option is found under Configuration | Basic

<br>

Version 8.2 and Lower

Follow the instructions to manually configure HTTPS support in the Web Service.

Windows: See Article 995
Linux: See Article 946

<br>

Categories
Knowledge Support Support exacqVision Webservice Categories Products

Using exacqVision Web Service with Edge Cameras

Edge cameras cannot run the exacqVision Web Service. If you want to connect to an Edge camera using the Web Client or the Exacq Mobile 3 app you will need to install the exacqVision Web Service on another machine.

The web service can be run on other machines but you will need to enter the Web Service Configuration to change the default server address from the loop back of 127.0.0.1 to the address of your Edge device(s).

Unlike an NVR installation of the exacqVision Server, the Edge Server application does not permit changing the default listening port for incoming client connections. Therefore, if you need to use the web service with Edge cameras you will need to configure the proper port forwarding for these connections. The addresses and port forwarding used depend on where you are placing the web service, and whether you are using multiple Edge devices behind the same router.

<br>

Web Service Inside LAN

If the web service is inside the same Local Area Network as the Edge cameras, you may use the Server Connections page in the Web Service Configuration to connect the web service to each Edge camera. This requires minimal port forwarding in the router.

<br>

Web Service Across WAN

If the web service is placed outside of the Local Area Network the Edge cameras are on, you will need to configure port forwarding as well as port translation. Port translation is used because the listening port of the Edge servers cannot be changed from their default port numbers. 

NOTE: Some home or small business routers may not be capable of port translation.

<br>

Categories
Knowledge Support Support exacqVision Client Categories exacqVision Webservice Products

Adding a new server to the exacqVision Integrator Services Portal Outbound Connections Tab

To add a new server to the Integrator Services Portal(ISP) instance you will need a thick client connection to the server.

Proceed to the server outbound connection tab:

  1. Click on Configure to enter your Portal credentials.

    Portal credentials are provided when your dealer ISP instance is created. If you don’t have a portal account submit your information at https://exacq.com/contacts/form/
  2. You can also reset your password for the portal using the Reset password link
  3. Enter your ISP credentials if you are not already logged in.
  4. The new server will show up as connected in your dealer ISP instance.

<br>