Server Environment Variables
  • 24 Dec 2024
  • 1 Minute to read
  • Dark
    Light

Server Environment Variables

  • Dark
    Light

Article summary

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 Polarity Server's 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

Was this article helpful?