Polarity Admin Guide Version 5
Release Notes
  • Guides
    • Installing License
    • Authentication
      • LDAP Troubleshooting
      • SAML
        • Azure ADFS
        • Okta
        • SAML Troublshooting
    • Installing SSL Certificate
      • Configuring Certificate Signing Request (CSR)
    • Configuring a Proxy
    • Upgrade PostgreSQL to v15
    • Enabling SMTP
    • Server Environment Variables
    • File System Layout
    • Configuring a FQDN
    • Upgrade Polarity Server v4 to v5
    • Update Polarity V5
    • Troubleshooting V5
    • Fresh Installation Polarity Server v5
    • Enabling Source Analytics
      • Splunk
        • Sending Source Analytics to Splunk
        • Source Analytics Integration
      • Elasticsearch
        • Sending Source Analytics to Elasticsearch
        • Source Analytics Integration
  • Integrations
    • Installation
    • Install Multiple Copies of an Integration
    • Modifying Integration Name & Acronym
  • REST API
    • Authentication
    • Search Integrations
    • Integration Information
      • Integration Attributes
      • Updating Integrations
      • Updating Integration Permissions
      • Integration Options
Powered by GitBook
On this page
  1. Guides

Server Environment Variables

Server environment variables can be configured by modifying the .env file located at /app/.env.

Modifications to the .env file will require a restart of the docker containers

cd /app && ./down.sh && ./up.sh

Variables

MIX_ENV=prod
POLARITY_HOSTNAME={{hostname of Polarity server}}
POLARITY_HTTPS_PORT=4001
POLARITY_HTTP_PORT=4000
POLARITY_TLS_KEY_PATH=/app/certs/polarity_key.pem
POLARITY_TLS_CERT_PATH=/app/certs/polarity.pem
POLARITY_LICENSE=/app/license/polarity.lic
POLARITY_PUBLIC_LICENSE_KEY=/app/license/server.crt
POLARITY_DB_DATABASE=breach
POLARITY_DB_HOST={{DB Host}}
POLARITY_DB_PORT=5432
POLARITY_DB_USER=polarity
POLARITY_DB_PASSWORD={{Password]]
POLARITY_DB_CONNECTION_POOL_SIZE=50
POLARITY_DB_SECRET_KEY={{Secret_key}}
POLARITY_DB_SUPERUSER_USER=breach
POLARITY_DB_SUPERUSER_PASSWORD={{Secret Key}}
POLARITY_METRICS_CACHE_HOST={{Cache Host}}
POLARITY_METRICS_CACHE_PORT=8379
POLARITY_METRICS_CACHE_DB=1
POLARITY_METRICS_CACHE_MEMORY=0.1
POLARITY_USER_METRICS_COLLECTION=true
POLARITY_INTEGRATION_CACHE_HOST={{cache host}}
POLARITY_INTEGRATION_CACHE_PORT=7379
POLARITY_INTEGRATION_CACHE_DB=1
POLARITY_INTEGRATION_CACHE_MEMORY=0.1
POLARITY_INITIALIZE_REDIS_CONFIGS_ON_START=true
POLARITY_INTEGRATIONS_ASSETS_FOLDER=/app/assets
POLARITY_INTEGRATIONS_FOLDER=/app/integrations
POLARITY_SECRET_SIGNING_SALT={{salt}}
POLARITY_SECRET_KEY_BASE={{Key}}
POLARITY_GUARDIAN_KEY_BASE={{Key}}
POLARITY_LAUNCH_DARKLY_API_KEY=INVALID_POLARITY_LAUNCH_DARKLY_API_KEY
POLARITY_RBAC_MODEL=/app/rbac_model.conf
POLARITY_PLATFORM_API_HOSTNAME=https://polarity_platform:4001
POLARITY_LOG_INTEGRATION_LOOKUPS=verbose
HTTP_PROXY=http://{{proxyhosntame}}:{{Proxy Port}}
HTTPS_PROXY=https://{{proxyhosntame}}:{{Proxy Port}}
NO_PROXY={{hostnames/IPS of services to ignore}},polarity_platform 

PreviousEnabling SMTPNextFile System Layout

Last updated 1 year ago