# Fill out this file, and renamed to '.server.env' in order to run this with Tilt

# Required parameters

SQL_LITE=false
DB_NAME=porter
DB_USER=porter
DB_PASSWORD=porter
DB_HOST=postgresql
DB_PORT=5432

# Required for accessing cluster control plane. If ENABLE_CAPI_PROVISIONER=false, nothing in this section will be used

ENABLE_CAPI_PROVISIONER=true
NATS_URL=nats:4222
CLUSTER_CONTROL_PLANE_ADDRESS=http://ccp-web:7833

# Domain we use to generate custom subdomains from
APP_ROOT_DOMAIN=withporter.run

# Controls which external dns provider to use
# Specific clients may require extra tokens
# Options: cloudflare, powerdns, or empty string
DNS_PROVIDER=powerdns

# Cloudflare DNS provider
# if set, can be used as an alternative to PowerDNS
# Create a token here: https://dash.cloudflare.com/profile/api-tokens
CLOUDFLARE_API_TOKEN=<cloudflare-edit-dns-api-token>

# Github Login OAuth. More information found at https://docs.porter.run/enterprise/self-hosted/integrations/github#setting-up-github-repository-integrations

GITHUB_LOGIN_ENABLED=false

# Github App for repo deployments, and preview environments. Remove these if you are not using preview environments or deploying from a repo locally.

GITHUB_APP_CLIENT_ID=<github_app_id>
GITHUB_APP_CLIENT_SECRET=<github_secret>
GITHUB_APP_WEBHOOK_SECRET=<webhook_secret>
GITHUB_APP_NAME=<github_app_name>
GITHUB_APP_ID=<github_app_id>

# GITHUB_APP_SECRET_PATH is the path to your secret within the container. Tilt will sync your ~/.ssh/ folder into /app/ssh automatically. This will likely be /app/ssh/your_ssh_pem_name

GITHUB_APP_SECRET_PATH=<path_to_secret>

# LAUNCHDARKLY_SDK_KEY is used to interact with the launchdarkly api
# Retrieve your SDK key from https://app.launchdarkly.com/settings/projects/dev/environments

FEATURE_FLAG_CLIENT=launch_darkly
LAUNCHDARKLY_SDK_KEY=<launchdarkly_sdk_key>

# Optional parameters

# HELM_APP_REPO_URL=http://chartmuseum:8080 can be used to test charts using porter-charts with Tilt

HELM_APP_REPO_URL=http://chartmuseum:8080
#HELM_APP_REPO_URL=https://charts.getporter.dev
#HELM_ADD_ON_REPO_URL=https://charts.getporter.dev

# SERVER_URL must be set to your ngrok url, If you are using ngrok for your github app setup on the backend

# SERVER_URL=

# TELEMETRY\_\* are required if you are piping trace events to the open telemetry collector

TELEMETRY_NAME=porter
TELEMETRY_COLLECTOR_URL=otel-collector:4317

# STRIPE_SECRET_KEY is used to create customers and payment method in Stripe. If empty all functionality will be disabled.
STRIPE_SECRET_KEY=

# STRIPE_PUBLISHABLE_KEY is used in the frontend to create Stripe Web Elements
STRIPE_PUBLISHABLE_KEY=

# METRONOME_API_KEY is used to create customers in Metronome. If empty all functionality will be disabled.
METRONOME_API_KEY=

# PORTER_CLOUD_PLAN_ID is the id of the starter plan in Metronome. Only used if METRONOME_API_KEY is set
PORTER_CLOUD_PLAN_ID=

# PORTER_STANDARD_PLAN_ID is the id of the standard plan in Metronome. Only used if METRONOME_API_KEY is set
PORTER_STANDARD_PLAN_ID=
