AMT Help Files

Hosting

To access the Control Center, its backend needs to be running and its frontend needs to be hosted. In the example below, Nginx is configured and used to access the Control Center.

Configuring the Frontend

Follow the steps below to configure Nginx to host the Control Center frontend.

  1. Navigate to the Nginx/conf directory.
  2. Open the nginx.conf configuration file in a text editor.
  3. Add the following blocks:
    http {
    ...

    server { ... #AMT Control Center Frontend location /control-center { alias C:\AMT\AMT-Java\Binaries\control-center-frontend; try-files $uri $uri/ /index.html =404; } #API requests from the Control Center location control-center/api { rewrite ^/control-center(.*)$ $1 break; proxy_pass https://127.0.0.1:9001; }
    ... }
    (Change the alias path to point to the Control Center frontend in the AMT environment).

  4. Save the file.

Starting the Back and Frontend

  1. Open PowerShell and run the following command to start the backend:
    java --enable-preview -jar C:\AMT\AMT-Java\Binaries\control-center-backend\control-center-server-pekko-x.x.x.jar -cf "C:\AMT\AMT-Java-Client\Config\cc-config.yaml" -lf "C:\AMT\AMT-Java\Config\AmtRuntime.lic"
  2. Open another PowerShell window and run the following command from the Nginx directory to start the frontend:
    nginx start