|
|
|
[script/setup.pl](ironapi-gw/script/ironapi_setup.pl)
|
|
|
|
|
|
|
|
reads variables from the environment, to create the gateway configuration.
|
|
|
|
|
|
|
|
Once the setup has run, it not re-create the configuration. To change the database config at a later point, edit `etc/ironapi_gw.conf`
|
|
|
|
(which will have been generated by the setup script).
|
|
|
|
|
|
|
|
These environment variables may be set (e.g. in a Dockerfile):
|
|
|
|
|
|
|
|
```
|
|
|
|
# db connect variables within the docker-network
|
|
|
|
DBUSER=postgres
|
|
|
|
DBHOST=genesis
|
|
|
|
DBPORT=5432
|
|
|
|
|
|
|
|
# Host port for API and GUI
|
|
|
|
GW_PORT=3222
|
|
|
|
|
|
|
|
# host and port for openapi ouput
|
|
|
|
#GW_HOST_OPENAPI=localhost
|
|
|
|
#GW_PORT_OPENAPI=GW_PORT
|
|
|
|
|
|
|
|
# authentication key for caching
|
|
|
|
GW_APIKEY=a9564ebc3289b7a14551baf8ad5ec60a
|
|
|
|
|
|
|
|
# gateway options
|
|
|
|
|
|
|
|
#GW_DEFAULT_PAGESIZE=10
|
|
|
|
#GW_MAX_PAGESIZE=101
|
|
|
|
#GW_ALLOW_LITERALS=0
|
|
|
|
GW_HUGE_LIMIT=10
|
|
|
|
#GW_UPLOAD_DIR_HOST=
|
|
|
|
#GW_UPLOAD_DIR=/app/var/upload/
|
|
|
|
#GW_VAR_DIR=/app/var/
|
|
|
|
#GW_FILE_STORE_IN_DB=0
|
|
|
|
|
|
|
|
# debug gateway (incl. listener)
|
|
|
|
#look for code changes every second
|
|
|
|
LISTENER_CHECK_FOR_CODE_CHANGES=1
|
|
|
|
GW_DEBUG=1
|
|
|
|
CATALYST_DEBUG=1
|
|
|
|
DBIC_TRACE=1
|
|
|
|
``` |