Corteza Discovery
Configuring Corteza Server
To enable Corteza Discovery, access the Docker container and run the following commands:
To access the Docker container, run the following command:
|
Enable Corteza Discovery for Low Code namespaces:
corteza-server settings set discovery.compose-namespaces.enabled true
Enable Corteza Discovery for Low Code modules:
corteza-server settings set discovery.compose-modules.enabled true
Enable Corteza Discovery for Low Code records:
corteza-server settings set discovery.compose-records.enabled true
Enable Corteza Discovery for users:
corteza-server settings set discovery.system-users.enabled true
Next, set the following
.env
variables for your Corteza server:DISCOVERY_ENABLED=true
DISCOVERY_BASE_URL=your-discovery-server-base-url
# Optional variable for debugging
# DISCOVERY_DEBUG=true
Configuring Corteza Discovery Server
Example
.env
file for for your Corteza Discovery server:AUTH_CLIENT_KEY=your-client-key-here
AUTH_CLIENT_SECRET=your-client-secret-here
########################################################################################################################
########################################################################################################################
# Corteza Discovery configuration
CORTEZA_SERVER_BASE_URL=your-corteza-server-base-url
# Adjust log level to your needs
LOG_LEVEL=debug
ES_ADDRESS=your-elastic/open-search-base-url
# Reindex interval in seconds
ES_INDEX_INTERVAL=10
DOMAIN=your-domain-here
HTTP_ADDR=your-domain-here
########################################################################################################################
########################################################################################################################
# Corteza Discovery indexer configuration
DISCOVERY_INDEXER_ENABLED=true
DISCOVERY_INDEXER_PRIVATE_INDEX_CLIENT_KEY=${AUTH_CLIENT_KEY}
DISCOVERY_INDEXER_PRIVATE_INDEX_CLIENT_SECRET=${AUTH_CLIENT_SECRET}
########################################################################################################################
########################################################################################################################
# Corteza Discovery searcher configuration
DISCOVERY_SEARCHER_ENABLED=true
DISCOVERY_SEARCHER_CLIENT_KEY=${AUTH_CLIENT_KEY}
DISCOVERY_SEARCHER_CLIENT_SECRET=${AUTH_CLIENT_SECRET}
DISCOVERY_SEARCHER_JWT_SECRET=some-random-value-here