Installing the FACT-R Service

Starting with release 505.3, the FACT-R web application can be installed as a PLAN-R On-Premise service.

The following deployment options are available:

Attention! Configure FACT-R using these environment variables.

Attention! Include the factr profile in COMPOSE_PROFILES=all, factr when using the service.

Installation with a Shared Domain

To install FACT-R on the same domain as PLAN-R, enable the service. Set FACTR_ENABLED to true in .env and add the factr profile to COMPOSE_PROFILES. The updated .env file should look like this:

register image.env File: Enabling FACT-R

Start the system using ./start.sh. The service is available at: http(s)://FQDN/factr

register imageFACT-R Sign-In Page

Installation with a Separate Domain

By default, FACT-R installed alongside PLAN-R is available at http://fqdn/factr. You can also configure a separate domain name. Set FACTR_SYSTEM_SITE in .env to the required domain name. Also enable FACTR_ENABLED=true and specify the planr profile in COMPOSE_PROFILES=all,factr.

Attention! When accessing FACT-R through a domain name, make sure the required DNS record exists on your DNS server.

register image.env File: FACT-R Domain Name

register imageSign-In Window: FACT-R Domain Name

Installing FACT-R as a Standalone Service with an External NGINX Web Server

To install FACT-R as a standalone service with an external NGINX web server:

  • Either download the current FACT-R image using:
docker pull registry.dppm.pro/releases/planr/factr:xxx.x
  • Or extract FACT-R from the planr_XXX.X distribution archive using:
unzip /path_to_distr/planr_xxx.x "images/factr.tar" -d ./

Open /path_to_distr/images in the extracted distribution and load the image from factr.tar into Docker:

docker load -i factr.tar
  • Install NGINX and obtain SSL certificates for FACT-R.
  • Create factr.conf in /etc/nginx/conf.d.

NGINX Configuration

# Redirect port 80 to port 443
server {

    server_name fact-test.org; # Replace with your value, or use _ to listen for all hosts
    listen 80;
    return 404;
}

# Main server
server {

    server_name fact-test.org; # Replace with your value, or use _ to listen for all hosts

    listen 443 ssl;
    # SSL settings
    ssl_session_cache shared:le_nginx_SSL:10m;
    ssl_session_timeout 1440m;
    ssl_session_tickets off;

    ssl_protocols TLSv1.2 TLSv1.3;
    ssl_prefer_server_ciphers off;

    ssl_certificate /etc/ssl/factr.crt; # Specify your certificate path
    ssl_certificate_key /etc/ssl/factr.key; # Specify your private key path

    location / {
        proxy_set_header        Host                    $http_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       https;
        proxy_buffering off;
        chunked_transfer_encoding off;
        proxy_set_header        X-Forwarded-Ssl   on;
        proxy_pass http://localhost:8080; # Replace with the container port
    }

}

  • Restart NGINX after adding the certificates and factr.conf.
  • Start the FACT-R container using:
# Map container port 8080 to external port 8080
docker run -p 8080:8080 --restart always -d registry.dppm.pro/releases/planr/factr:xxx.x

Configuring Access to a Remote PLAN-R Server

In the sign-in window, replace the URL field value with the FQDN of the PLAN-R server you want to connect to.

register image

You can also set PLANR_URL in .env to the address or FQDN of the PLAN-R server to connect to.

register image

Configuring HTTPS Access to FACT-R

To enable secure HTTPS access using SSL certificates, set PROXY_SSL_ENABLED to true. Set PROXY_CERT_PATH and FACTR_CERT_PATH to absolute or relative paths to certificate files issued by your certificate authority. Each file must use .pem format, contain the server certificate and private key, and include the complete certificate chain.

register image.env File: FACT-R Certificate

For details on configuring HTTPS access to services, see Configuring the Proxy.

Installing Standalone FACT-R with an External NGINX Reverse Proxy

  • To install FACT-R as a standalone service with an external NGINX web server in reverse proxy mode, complete the preparation steps.
  • Install NGINX and obtain SSL certificates for FACT-R.
  • Create factr.conf in /etc/nginx/conf.d.

NGINX Reverse Proxy Configuration

# Redirect port 80 to port 443
server {

    server_name factr-reverse-proxy.dppm.ru; # Replace with your value, or use server_name _ to listen for all hosts
    listen 80;
    return 301 https://$server_name$request_uri;
}

# Main server
server {

    server_name factr-reverse-proxy.dppm.ru; # Replace with your value, or use server_name _ to listen for all hosts

    listen 443 ssl;
    # SSL settings
    ssl_session_cache shared:le_nginx_SSL:10m;
    ssl_session_timeout 1440m;
    ssl_session_tickets off;

    ssl_protocols TLSv1.2 TLSv1.3;
    ssl_prefer_server_ciphers off;

    ssl_certificate /etc/ssl/factr.crt; # Specify your certificate path
    ssl_certificate_key /etc/ssl/factr.key; # Specify your private key path

    location / {
        proxy_set_header        Host                    $http_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       https;
        proxy_buffering off;
        chunked_transfer_encoding off;
        proxy_set_header        X-Forwarded-Ssl   on;
        proxy_pass http://<your_host_ip>:8080; # Replace with the container port
    }

    location ~ ^/(api|public-api|socket\.io) {
        proxy_set_header Host fqdn_your_planr_host; # PLAN-R domain
        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_buffering off;
        proxy_read_timeout 3600;
        proxy_send_timeout 3600;
        chunked_transfer_encoding off;
        proxy_set_header X-Forwarded-Ssl on;
        
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        
        # proxy_ssl_verify off; # Uncomment if PLAN-R uses self-signed certificates
        proxy_pass https://<planr_ip_or_fqdn>; # Replace with the PLAN-R service IP address or domain
    }

}
  • Restart NGINX after adding the certificates and factr.conf.
  • Start the FACT-R container using:
docker run -p 8080:8080 --restart always -e PLANR_URL=https://factr-reverse-proxy.dppm.ru -e HIDE_URL_FIELD=true -d registry.dppm.pro/releases/planr/factr:xxx.x

Where:

  • -p 8080:8080 maps container port 8080 to external port 8080.
  • -e PLANR_URL=https://factr-reverse-proxy.dppm.ru — in reverse proxy mode, PLANR_URL must use the format https://FACT-R_server_FQDN, matching the FACT-R FQDN specified by server_name in NGINX.
  • -e HIDE_URL_FIELD=true controls field visibility in the FACT-R interface and must be set to true in reverse proxy mode.
  • -d registry.dppm.pro/releases/planr/factr:xxx.x specifies the FACT-R Docker image.

After the container starts, the FACT-R sign-in window in reverse proxy mode looks like this:

register imageFACT-R Interface in Reverse Proxy Mode

To start the FACT-R service, run:

docker run -p 8080:8080 --restart always -d registry.dppm.pro/releases/planr/factr:xxx.x

Where:

  • -p 8080:8080 maps internal container port 8080 to external port 8080.
  • -d registry.dppm.pro/releases/planr/factr:xxx.x specifies the FACT-R Docker image.

Deployment in Kubernetes Using Helm

An official Helm chart is available for deploying FACT-R in Kubernetes clusters: oci://registry.dppm.pro/charts/factr.

For detailed Helm configuration and installation instructions, see Deploying FACT-R (Kubernetes).


608.0-5d1f26c7