-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy pathokapi.conf
129 lines (107 loc) · 4.33 KB
/
okapi.conf
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
#
# FOLIO Okapi configuration
#
# Okapi requires exactly one command to be given depending on how
# it is utilized.
#
# 'cluster' - for running in clustered mode/production
# 'dev' - for running in development, single-node mode
# 'deployment' - for okapi deployment only. Clustered mode
# 'proxy' - for proxy + discovery. Clustered mode
#
#
role="cluster"
# 'cluster' config options
#
# -hazelcast-config-cp file -- Read config from class path
# -hazelcast-config-file file -- Read config from local file
# -hazelcast-config-url url -- Read config from URL
#
#cluster_config="-hazelcast-config-file /etc/folio/okapi/hazelcast.xml"
# Specify the network interface Vertx cluster should bind to.
# By default, it will bind to all network interfaces. This may have
# unintended consequences.
#cluster_interface="eth0"
# Specify which port the cluster should bind to for cluster
# communication. (Note: This different from '5701' which is used for
# cluster discovery). If not set, a random port will be used.
#cluster_port="9001"
# Enable the sending of various metrics to a Carbon back end.
# Boolean '0' or '1'. Set to '1' to enable and set Carbon/Graphite
# host and port.
enable_metrics=0
carbon_host="localhost"
carbon_port="2003"
# Default okapi port
port="9130"
# Define port range for modules. Default range: 9131-9141.
port_start="9131"
port_end="9141"
# Hostname to be used in the URLs returned by the deployment service.
# Defaults to 'localhost'
host="localhost"
# Set '-Dnodename'. Required for deployment persistence when
# running Okapi in cluster mode. Defaults to `/bin/hostname`
#nodename=
# Define the storage back end - 'postgres' or 'inmemory'
# ('postgres' only valid when 'role' is set to 'cluster' or 'dev')
# (valid only when 'role' is set to 'dev' or 'cluster')
# If set to 'postgres', make sure the okapi database has been
# created and okapi user has been configured in the postgres
# instance and then run:
# /usr/share/folio/okapi/bin/okapi.sh --initdb
# to initialize the okapi database for restarting okapi.
storage="inmemory"
# Set Postgres parameters. Ignored unless 'storage="postgres"'
postgres_host="localhost" # default 'localhost'
postgres_port="5432" # default postgres port
postgres_username="okapi" # default
postgres_password="okapi25" # default
postgres_database="okapi" # default
# Define Docker URL if we are deploying modules via Docker.
dockerurl="http://localhost:4243"
# Tell Okapi its own official URL. This gets passed to the
# modules as X-Okapi-Url header, and the modules can use this
# to make further requests to Okapi. Defaults to 'http://localhost:9130'
# or whatever port specified. There should be no trailing slash, but if
# there happens to be one, Okapi will remove it.
okapiurl="http://localhost:9130"
# Okapi Logging options
#
# Define logging level. Defaults to 'INFO'; other valid values are 'DEBUG',
# 'TRACE', 'WARN', and 'ERROR'
loglevel="INFO"
# Specify external log4j2 configuration file. Otherwise logging defaults
# to STDOUT. If defined, 'loglevel' is ignored.
log4j_config="/etc/folio/okapi/log4j2.properties"
# Maximum number of iterations for deployment - before
# giving up (readiness check). Defaults to 60. A value, n,
# corresponds to roughly n*n*0.2 seconds.
# This value, if set, overrides the `waitIterations` in the launch descriptor.
# deploy_waitIterations="60"
# Vert.x cache for classpath resource files
# https://vertx.io/docs/vertx-core/java/#classpath
vertx_cache_dir_base="/tmp/vertx-cache-okapi"
# Set dockerRegistries for Okapi to pull images, a JSON-encoded array of objects,
# see https://github.com/folio-org/okapi/blob/master/doc/guide.md#okapi-configuration
# If unset it uses this default (pull images from Docker Hub unauthenticated):
# docker_registries='[ {} ]'
# Sample configuration that first tries "dockeruser" and then tries unauthenticated:
# docker_registries='
# [
# {
# "username": "dockeruser",
# "password": "secret",
# "email": "[email protected]"
# },
# {
# }
# ]
# '
# Time to live in milliseconds for token cache entries. Defaults to 180000 milliseconds = 3 minutes.
# token_cache_ttl_ms = 180000
# The maximum number of token cache entries. Defaults to 10000.
# token_cache_max_size = 10000
# Controls how often in milliseconds Okapi logs a `WAIT` line for ongoing request.
# A value of 0 disables this and is also the default.
# log_wait_ms = 0