# directory path of API Gateway library
API_LIB=/usr/share/api-gateway/lib

# User and group for processes
API_USER=api
API_GROUP=api

# full path of API Gateway configuration file
API_CONFIG=/etc/api-gateway/apilist

# log directory
API_LOGDIR=/var/log/api-gateway

# PID file
API_PIDFILE=/var/run/api-gateway.pid

# TCP Ports
API_REDIRECTOR_PORT=80
API_PROXY_PORT=443

# SSL certificates
API_KEY=/etc/ssl/private/server.key
API_CERT=/etc/ssl/certs/server.pem

#  API_CA_LIST=comma separated list of CA certs in the chain for API_CERT,
#  set by code in /etc/init.d/api-gateway

# Comma separated list of valid hostnames
#
# API_HOSTS=api.example.com,api.example.org
#
# Default to the CN from the cert and localhost
API_HOSTS=`openssl x509 -in /etc/ssl/certs/server.pem -noout -subject -nameopt sep_multiline|grep CN=|cut -d= -f2`,localhost
