Install > Install and set up Service Portal > (Optional) Configure NGINX in a single Service Portal instance

(Optional) Configure NGINX in a single Service Portal instance

In a single instance Service Portal deployment, you can optionally configure NGINX as a reverse proxy in front of Service Portal.

To do this, follow these steps:

  1. Log in to your Service Portal host.
  2. Run the following commands:

    # cd /opt/hp/propel/contrib/propel-distributed.contrib-install-*
    # cp inventory/hosts.example  inventory/hosts.default
    # cp group_vars/propeld.yml.example  group_vars/propeld.yml
  3. Update the hosts.default file.

    Run this command:

    # vi inventory/hosts.default

    Add the following content:

    [lb]
    <Service Portal host FQDN>
     
    [lb_ip]
    [propel]
    <Service Portal host FQDN>
     
    [db_m]
    [db_s]
    [db_vip]
    [db:children]
    db_m
    db_s
     
    [propeld:children]
    lb
    propel
    db
     
    [internet:children]
    lb

    Note Replace <Service Portal host FQDN> with the fully qualified domain name of your Service Portal host.

  4. Configure a web proxy in the propeld.yml file.

    Run the following command:

    # vi group_vars/propeld.yml

    Configure a proxy as follows:

    proxy_env:
      http_proxy: http://<web proxy server FQDN>:<port>
      https_proxy: http://<web proxy server FQDN>:<port>
  5. Run the following commands:

    ssh-copy-id root@<Service Portal host FQDN>
    ansible propeld -m ping
    ansible-playbook proxy.yml 2>&1 | tee proxy-setup.log