The following is a guide for how to deploy UNE on a single server.

If you are upgrading an existing UNE for ArcGIS Single Server installation, please refer to the Updating an existing installation section at the end of this guide.

If CORS will be enabled on the Windows server, please see the section on how to configure CORS Settings.

Step 1 – Installing the prerequisites

UNE for ArcGIS requires a webserver to serve its static pages and content. It also requires a number of server side components in order to interact correctly with ArcGIS Enterprise and its clients.

The following are the pre-requisites which must be installed on the machine.

Node.js

The server side components of UNE for ArcGIS are built using Node.js.

We recommend installing the latest stable release of Node.js which can be downloaded from this page.

Web Server

For the purposes of this guide, Microsoft Windows IIS has been used.

  1. Ensure IIS has bindings configured for https.
  2. Ensure Windows Features ASP.NET and .NET are installed, enabled and up to date (.NET 8 + recommended).
  3. Install URL Rewrite Module 2.1. This is a web component that allows IIS to rewrite URLs.
    It is packaged and available as a web component: https://www.iis.net/downloads/microsoft/url-rewrite.
  4. Install IISNode x64. This is a component that allows IIS to connect to Node.js.
    https://github.com/Azure/iisnode

Step 2 – Setting up the web server

UNE for ArcGIS is provided as a directory of files that must be deployed onto the web server, using the steps below.

  1. Obtain the latest release media from the Esri UK Application Licensing Hub.
  2. Copy the contents of the zipped media onto the web server. It will consist of the following folders:
    • cli
    • installscripts
    • server
    • testautomation
    • web
  3. In IIS right-click on the Default Web Site and add an application. Give the application an alias of UNE. Copy the path to the web folder in Windows Explorer and paste it into the IIS application
  4. In IIS right-click on the Default Web Site and add an application. Give the application an alias of UNEServer. Copy the path to the server folder in Windows Explorer and paste it into the IIS application Physical Path setting.
  5. Next the software dependencies need to be installed. Open a command prompt and change the directory to the server folder and use the command npm install to install the components:
    $ cd c:\UNE\media\server
    $ npm install
    
  6. Once the server components are installed, please edit the Server configuration files to provide a set of allowed URLs.
    • Navigate to the server\dist\config.json file and open it in an editor.
    • Find the origins property. The syntax is "origins": [ "https://<WEBSERVERURL>.com" ]. Wildcards and multiple entries are allowed in this property.
    • Keep the existing URLs (starting with "REGEX:...") in the origins property and add a comma after the last one.
    • Add the public facing URL of the web server behind the newly added comma (onto a new line) to the origins property. Ensure it is enclosed in double quotes.
    • If upgrading from an earlier version, please ensure there is a ‘virtualFolder’ property, and it is set to your hosting server’s virtual folder. e.g. “/uneserver”:
      "origins": [
              "https://<WEBSERVERURL>.com"
          ]
      "virtualFolder": "/uneserver"
      
    • Ensure the Server is working, by going to the following URLs:
      • https:[serverdetails]/name of virtual directory/serverinfo
        e.g. https://localhost/uneserver/serverinfo
        This should display a message from the server similar to the below.
      • https:[serverdetails]/name of virtual directory/serverping
        e.g. https://localhost/uneserver/serverping
        This should show a successful ping message.

Step 3 – Registering UNE with ArcGIS Enterprise

UNE needs to be registered with ArcGIS Enterprise. To do this you will need to add an Item to your portal, and ensure it is a registered item.

  1. Launch ArcGIS Enterprise in a browser and log in as an administrative portal user.
  2. Navigate to your Content and click New item.
  3. For the item type, choose an Application, .
  4. Choose Web Mapping.
  5. Enter the URL to the client application folder that was added as the path in IIS. You can check the UNE application in IIS to view the details of this path. e.g. https://localhost/une/
  6. Add an appropriate Title for the application (e.g. UNE for ArcGIS) and select the Folder it should be saved into.
  7. After clicking Next, the details page of the new item will appear.
  8. Share the UNE for ArcGIS item with your Organization.
  9. Click Settings and scroll down to App Registration. Click the Register button.
  10. For App Type, choose Multiple.
  11. For Redirect URI, add the http & https version of the URL. In addition add une://launch.html .
  12. After completing the registration, make a note of the Item ID which can be taken from the URL of the item, and the App ID which can be found in the registration window. You will need these when configuring UNE for ArcGIS.

Step 4 – Configuring UNE

Now the item is in the portal, it is necessary to change the UNE configuration files, to point to all the above paths, and identifiers.

  1. Browse to C:\UNE\media\web\appconfig and open the file called appconfig.js in a text editor.
  2. In the socketUrl section, change the url parameter to the URL of your web server. Use only the domain name i.e. https://mysweetserver.mycompany.com/
  3. – do not include any path/virtual directory.
  4. In the socketUrl section, change the path parameter to the path provided for the web server components in IIS. (e.g. uneserver/socket.io ).
  5. Change the rootStem path parameter to the UNE ‘clientapplication’ URL from IIS, e.g. /uneserver.
  6. Change the proxyUrl parameter to the path provided for the web server component, proxy.
  7. Change the provisioningRegisteredClientId parameter to the app-id shown in the Register part of the item details. (e.g. a8B0C5dEFgHijk2l).
  8. Change the provisioningAppId parameter to the id of the item supplied in the browser url. (e.g. 12A34567bc8d4e5fg31h696i45235jkl).
  9. Change the sharingUrl, to be the sharing URL for your portal e.g. https://arcgis-server.mycompany.com/portal/sharing
  10. Change the portalUrl, to be the URL of the portal e.g. https://arcgis-server.mycompany.com/portal

The application is now ready to be launched. Either by clicking the View button on the item’s details page in ArcGIS Enterprise or going to the builder URL.

Step 5 – Licensing UNE

Once the media has been installed and configured, the last step is to create and install your license file. See the steps here on how to do that.

Optional CORS Settings

If CORS will be enabled on the Windows server, the following additional steps must be completed during the setup process.

  1. Confirm that the IIS CORS Module extension is installed on IIS.
  2. Amend the web.config file in the folder at C:\media\web so that CORS is enabled. A simple example of an unsecured web.config could be:
        <?xml version="1.0" encoding="UTF-8"?>
        <configuration>
            <system.webServer>
                <cors enabled="true" failUnlistedOrigins="true">
                    <add origin="*" />
                </cors>
            </system.webServer>
        </configuration>
    
  3. If you are restricting access to your Enterprise server to specific domains, add the url https://une.esriuk.com to the Allow origins list in the portal.

Updating an existing installation

To update a previous installation of UNE, preserving the existing configuration – the following steps should be followed.

  1. Locate the existing UNE installation folder on the server.
    This can be done by looking at the Web Application’s Virtual Path in IIS.

    And in file explorer will look like this:

    We will be replacing the five folders here.
  2. From the above folders – take a backup copy of the appconfig folder (containing the appconfig.js and the license file) and config file
    • …\web\appconfig
    • …\server\dist\config.json
    These files contain important site custom configuration.
  3. Obtain the latest release media from the Esri UK Application Licensing Hub .
  4. Remove the existing folders above and replace with the contents of the zipped media. It should look the same as the second screenshot under point 1.
  5. Next the software dependency modules need to be installed. Open a command prompt and change the directory to the server folder and use the command npm install to install the components:
    e.g.
    $ cd c:\UNE\media\server
    $ npm install
  6. Now we need to replace the appconfig folder and files we backed up.
    Replace the configuration file and appconfig folder with the backup ones taken from the previous installation. Furthermore, before replacing the files, check they have the correct Product ID, license file, and URL’s pointing to the correct Enterprise server:
    • …\web\appconfig
    • …\server\dist\config.json
  7. Test the updated installation by going to the following URLs:
    • https:[serverdetails]/name of virtual directory/serverinfo
      e.g. https://localhost/uneserver/serverinfo

      This should display a message from the server similar to the below.
    • https:[serverdetails]/name of virtual directory/serverping
      e.g. https://localhost/serverping
      This should show a successful ping message.
      If you get an error here – make sure you have completed the npm install step and the IIS virtual path is pointing to the server folder.