forked from GSA-TTS/identity-idva-api-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kong.conf.template
40 lines (30 loc) · 1.48 KB
/
kong.conf.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Disable Nginx Daemon so that Kong runs as a foreground process
nginx_daemon = off
# Set spawned worker processes to 1 to keep memory usage at a reasonable level and promote
# horizontal scaling on CloudFoundry
nginx_worker_processes = 1
# Comma-separated list of headers Kong should inject in client responses.
# 'off' prevents Kong from injecting any headers by default. Does not prevent plugins from injecting headers of their own.
headers = off
# Turn database off in dbless mode
database = off
# The path to the declarative configuration file which holds the specification of all
# entities (Routes, Services, Consumers, etc.) to be used when the database is set to "off".
declarative_config = /home/vcap/app/kong.yaml
# Comma-separated list of addresses and ports on which the proxy server should listen for HTTP/HTTPS traffic.
#proxy_listen = off # 0.0.0.0:8080
proxy_listen = 0.0.0.0:8080
# Comma-separated list of addresses and ports on which the Admin interface should listen.
admin_listen = 127.0.0.1:8081 http2 ssl reuseport backlog=16384
# Comma-separated list of addresses and ports on which the Status API should listen.
status_listen = 0.0.0.0:8100 ssl
status_ssl_cert = $CF_INSTANCE_CERT
status_ssl_cert_key = $CF_INSTANCE_KEY
# Set access log locations -> stdout
proxy_access_log = /dev/stdout
admin_access_log = /dev/stdout
status_access_log = /dev/stdout
# Set error log locations -> stderr
proxy_error_log = /dev/stderr
admin_error_log = /dev/stderr
status_error_log = /dev/stderr