Setting Up Shares and Console on the Same Host

Note: You need to ensure that you install Aspera Console before you install Aspera Shares.
  1. Install Console
  2. Install Shares .rpm, but do not run the install script
  3. Use a text editor to open the my.cnf.setup file located at:
    /opt/aspera/shares/etc/my.cnf.setup
    Provide the MySQL username and password that you used during the install of Aspera Console
    [client]
    user     = root
    password = aspera
    host     = 127.0.0.1
    port     = 4406
                       
  4. Run the Aspera Shares installer
    /opt/aspera/shares/u/setup/bin/install
  5. Disable the Apache Web Server
    asctl apache:stop
  6. Use a text editor to create a file in /opt/aspera/shares/etc/nginx/conf.d i.e.
    /opt/aspera/shares/etc/nginx/conf.d/console_cluster.conf
    The file should contain the following:
    upstream console_cluster {
    server 127.0.0.1:3500;
    server 127.0.0.1:3501;
    server 127.0.0.1:3502;
    server 127.0.0.1:3503;
    }
                      
  7. Use a text editor to create a file in /opt/aspera/shares/etc/nginx/locations-enabled i.e.
    /opt/aspera/shares/etc/nginx/locations-enabled/console
    The file should contain the following:
    location = /aspera/console {
      return 301 $scheme://$host$uri/$is_args$args;
    }
                        
    location ^~ /aspera/console/ {
      alias /opt/aspera/console/public/;
      expires 1d;
      try_files $uri @console_cluster;
    }
                        
    location @console_cluster {
      proxy_pass http://console_cluster;
      proxy_redirect off;
      proxy_set_header Host $http_host;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header X-Forwarded-Proto https;
      proxy_set_header X-Real-IP $remote_addr;
    }
                    
  8. Restart the Nginx service
    service aspera-shares restart