Configuring CUE

To configure CUE:

  1. If necessary, switch user to root.

    $ sudo su
  2. Open /etc/escenic/cue-web-2.0/config.yml for editing. For example

    # nano /etc/escenic/cue-web-2.0/config.yml

    This is a new file, so it will be empty.

  3. Enter the following:

    endpoints:
      escenic: "http://escenic-host:81/webservice/index.xml"
      newsgate: "http://newsgate-host/newsgate-cf/"

    where escenic-host is the IP address or host name of the Content Engine CUE is to provide access to and newsgate-host is the IP address or host name of the CCI Newsgate system CUE is to provide access to. If no CCI Newsgate system is present, then you should remove the newsgate: "" line.

    endpoints:
      escenic: "http://escenic-host:81/webservice/index.xml"
  4. Save the file.

  5. Enter:

    # dpkg-reconfigure cue-web-2.0

    This reconfigures CUE with the Content Engine web service URL you specified in step 3.

  6. Open /etc/nginx/sites-available/default for editing, and replace the entire contents of the file with the following:

    server {
      listen 81 default;
      include /etc/nginx/default-site/*.conf;
    }
  7. Create a new folder to contain your site definitions:

    # mkdir /etc/nginx/default-site/
  8. Add three files to the new /etc/nginx/default-site/ folder:

    # touch /etc/nginx/default-site/cue-web.conf
    # touch /etc/nginx/default-site/webservice.conf
    # touch /etc/nginx/conf.d/request-entity-size-limit.conf
  9. Open /etc/nginx/default-site/cue-web.conf for editing and add the following contents:

    location /cue-web/ {
            alias /var/www/html/cue-web;
            expires modified +310s;
    }
  10. Open /etc/nginx/default-site/webservice.conf for editing and add the contents described in Web Service CORS Configuration.

  11. Open /etc/nginx/conf.d/request-entity-size-limit.conf for editing and add the following contents:

    # Disable default 1Mb limit of PUT and POST requests.
    client_max_body_size 0;

    (If you do not add this setting, then nginx will not allow larger files such as images and videos to be uploaded to CUE.)

You should now be able to access CUE by opening a browser and going to http://host:81/cue-web.