Configure NGINX - Administrator Guide - 6.9 - Cortex XSOAR - Cortex - Security Operations

Cortex XSOAR Administrator Guide

Product
Cortex XSOAR
Version
6.9
Creation date
2022-09-29
Last date published
2024-03-28
End_of_Life
EoL
Category
Administrator Guide
Abstract

Configure NGINX on Cortex XSOAR.

Follow these instructions to configure NGINX on Cortex XSOAR.

Note

For multi-tenant deployments, replace location ~ ^/(websocket|d1ws|d2ws) { with location ~ ^/(acc_\S+/)?(websocket|d1ws|d2ws) { in the configuration template below.

  1. Open the following NGINX configuration file with your preferred editor:

    /etc/nginx/conf.d/demisto.conf

  2. Use the following configuration template:

    Replace DEMISTO_SERVER with the appropriate hostname.

    # Replace DEMISTO_SERVER with the appropriate hostname. If needed, change port 443 to the port on which the Demisto server is listening.
    
    upstream demisto {
        server DEMISTO_SERVER:443;
    }
    
    # Uncomment to redirect http to https (optional)
    # server {
    #     listen 80;
    #     return 301 https://$host$request_uri;
    # }
    
    server {
       # Change the port if you want NGINX to listen on a different port
        listen 443;
        
        ssl_certificate           /etc/nginx/cert.crt;
        ssl_certificate_key       /etc/nginx/cert.key;
    
        ssl on;
        ssl_session_cache  builtin:1000  shared:SSL:10m;
        ssl_protocols  TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
        ssl_prefer_server_ciphers on;
    
        access_log            /var/log/nginx/demisto.access.log;
    
        location / {
    
          proxy_set_header        Host $host;
          proxy_set_header        X-Real-IP $remote_addr;
          proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_set_header        X-Forwarded-Proto $scheme;
    
          proxy_pass          https://demisto;
          proxy_read_timeout  90;
        }
    
        location ~ ^/(websocket|d1ws|d2ws) {
            proxy_pass https://demisto;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
            proxy_set_header Host $host;
            proxy_set_header Origin "";
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
        }
    }
  3. Restart the NGINX server, by typing the following command:

    sudo service nginx restart

  4. Verify you can access Cortex XSOAR by browsing to the NGINX server host.