
#upstream service name/application
ENVOY_SERVICE_NAME=juice-shop
#this is the port on which application is running
ENVOY_SERVICE_PORT=3000
ENVOY_EXTERNAL_DATA_LISTENING_PORT="8000"


ENVOY_AUTH_REQUEST_TIMEOUT=2s
ENVOY_FAILURE_MODE_ALLOW=true
ENVOY_UPSTREAM_SERVICE_CONNECT_TIMEOUT=4s
ENVOY_UPSTREAM_RESP_TIMEOUT=120s
ENVOY_MAX_REQUEST_BYTES=8192
ENVOY_MAX_RESPONSE_SIZE=8192




#admin port for envoy for debugging restricted to localhost access
#<host-ip>:<host-port>:<internal-port>" -- do not change <internal-port> else change ENVOY_PROXY_ADMIN_PORT
ENVOY_EXTERNAL_ADMIN_PORT="8001"
#will change only if onprem is run separately from envoy docker network -- these are shared with onprem agent
#name of the onprem controller
ENVOY_ON_PREM_CONTROLLER=ext_authz-http-service
#onprem agent listens on these ports -- any change here should invite a change in env.txt (used by onprem agent)
#EXT_AUTHZ_HTTP_SERVICE_PORT
ENVOY_AUTHZ_SERVICE_PORT=9002
#GRPC_LOG_SERVER_PORT
ENVOY_ACCESS_LOG_SERVICE_PORT=9003
#GRPC_METRICS_SERVER_PORT
ENVOY_METRICS_SERVICE_PORT=9005
#only for onprem agent
ONPREM_STATS_SERVICE_PORT="127.0.0.1:9101:9101"

#unlikley to change -- if this changes checked
ENVOY_LISTENING_PORT=8000
#for admin-ip listening ip (this is internal ip/port need not change)
ENVOY_PROXY_ADMIN_IP=127.0.0.1
ENVOY_PROXY_ADMIN_PORT=8001

#very unlikely to change -- this internal
ENVOY_LISTENING_ADDRESS=0.0.0.0
ENVOY_STATS_FLUSH_INTERVAL=60s

#only for kong support
KONG_LOG_SERVICE_PORT=9004 #GENERIC_LOG_HTTP_SERVICE_PORT

#Nothing doing -- use this yaml file -- use that and whatever is replaceble by this file-nothing replaceable will be used as is
#Note the folder where it is kept should be mounted on docker-compose (see volumes section) - currently on2 folders are mounted 
#/var/crash/:/var/crash
#ENVOY_USE_THIS_CONFIG_FILE=/var/crash/externalenvoy.yaml
