Serving Connect from a Local Location

If you need to host the IBM Aspera Connect Plug-in SDK installers locally, you can download the Connect SDK file and configure Shares to point to a local copy of the Connect SDK hosted at a non-standard location. In this way, users download Connect from a server of your choice.
  1. Download the Connect SDK zip file from the Aspera Developer Network.
  2. Create the directory, C:\Shares\connect-sdk, and extract the contents of the connect SDK into this directory.
  3. Edit the connectinstaller-4.js file found at the following location: C:\Shares\connect\v4\connectinstaller-4.js
    Change the default SDK location to connectOptions.sdkLocation.
    var updatesURL = connectOptions.sdkLocation;
  4. Open the file at C:\Shares\nginx\conf\nginx.conf and ensure the directive below is included in the file:
    http {
        server {
            include locations-enabled/*.conf;
  5. Create a file named "connect-sdk.conf" in the following location: C:\Shares\nginx\conf\locations-enabled\connect-sdk.conf. Paste the following content and save the file:
    location /connect/ {
      alias C:/Shares/connect-sdk/;
      expires 1d;
  6. Point Shares to the new Connect SDK location by editing the file at C:\Shares\www\app\views\node\shared\_aspera_web_plugin_install.html.haml.
    Change the following line to one of two options:
    - connect_autoinstall_location = '//'
    • Programmatically set the domain name of the server.
      - connect_autoinstall_location = "//#{ request.host_with_port }/connect/v4"
    • Manually set the domain name of the server. Replace with the Shares server domain.
      - connect_autoinstall_location = '//'
    Find the following line under function loadConnectScript:
    var url = window.location.protocol + CONNECT_AUTOINSTALL_LOCATION + '/' + script + '.min.js';
    Replace it with the line below:
    var url = window.location.protocol + CONNECT_AUTOINSTALL_LOCATION + '/' + script + '.js';
  7. Restart Shares and Nginx.
    Go to Start Menu > Control Panel > Administrative Tools > Services. Right-click and select Restart for each of the following services:
    • Aspera Nginx Service
    • Aspera Delayed Job Service
    • Aspera Web Services
    • Aspera Stats Collector
Your Shares server is now hosting IBM Aspera Connect Browser Plug-in and installers.
Note: You may need to clear your browser cache in order for these changes to take effect.