The CMS service is a microservice designed for managing taxonomies and content inside an application. Delivered as a Docker image, it simplifies content editing and analysis. This guide provides step-by-step instructions for setting up the service and configuring it to suit your needs.
flowx
.SECURITY_OAUTH2_BASE_SERVER_URL
: Specifies the base URL for the OAuth 2.0 Authorization Server, which handles authentication and token issuance.SECURITY_OAUTH2_CLIENT_CLIENT_ID
: Unique identifier for the client application. Used during authentication with the OAuth 2.0 server.SECURITY_OAUTH2_CLIENT_CLIENT_SECRET
: Secret key to authenticate requests from the client application.SECURITY_OAUTH2_REALM
: Defines the realm name for OAuth 2.0 provider authentication in Spring Security.SPRING_DATA_MONGODB_URI
: URI for connecting to the CMS MongoDB instance.
mongodb://${DB_USERNAME}:${DB_PASSWORD}@<host1>,<host2>,<arbiter-host>:<port>/${DB_NAME}?retryWrites=false
DB_USERNAME
: cms-core
DB_NAME
: cms-core
DB_PASSWORD
: DB password.MONGOCK_TRANSACTIONENABLED
: Enables or disables transactions in MongoDB for compatibility with the Mongock library.
false
(Set it to false
to support successful migrations).false
due to known issues with transactions in MongoDB version 5.SPRING_DATA_MONGODB_RUNTIME_URI
- URI for connecting to the Runtime MongoDB instance (app-runtime
)
mongodb://${RUNTIME_DB_USERNAME}:${RUNTIME_DB_PASSWORD}@<host1>,<host2>,<arbiter-host>:<port>/${RUNTIME_DB_NAME}?retryWrites=false
RUNTIME_DB_USERNAME
: app-runtime
RUNTIME_DB_NAME
: app-runtime
RUNTIME_DB_PASSWORD
: DB password.SPRING_DATA_MONGODB_STORAGE
- Specifies the storage type used for the Runtime MongoDB instance (Azure environments only)
mongodb
, cosmosdb
mongodb
SPRING_REDIS_HOST
: Hostname or IP address of the Redis server.SPRING_REDIS_PASSWORD
: Authentication password for the Redis server.REDIS_TTL
: Used to specify the maximum time-to-live (TTL) for a key in Redis, it is used to set a limit on how long a key can exist before it is automatically expired (Redis will delete the key after the specified TTL has expired).SPRING_KAFKA_BOOTSTRAP_SERVERS
: Address of the Kafka server (host:port).SPRING_KAFKA_CONSUMER_GROUP_ID
: Defines the Kafka consumer group.KAFKA_CONSUMER_THREADS
: Number of Kafka consumer threads.KAFKA_AUTH_EXCEPTION_RETRY_INTERVAL
: Retry interval after an authorization exception.KAFKA_TOPIC_AUDIT_OUT
: Topic for audit logs.Environment Variable | Default FLOWX.AI value (Customizable) |
---|---|
KAFKA_TOPIC_REQUEST_CONTENT_IN | ai.flowx.dev.plugin.cms.trigger.retrieve.content.v1 |
KAFKA_TOPIC_REQUEST_CONTENT_OUT | ai.flowx.dev.engine.receive.plugin.cms.retrieve.content.results.v1 |
KAFKA_TOPIC_REQUEST_CONTENT_IN
: This variable defines the topic used by the CMS to listen for incoming content retrieval requests.KAFKA_TOPIC_REQUEST_CONTENT_OUT
: This variable defines the topic where the CMS sends the results of content retrieval requests back to the FlowX Engine.LOGGING_LEVEL_ROOT
: Log level for the root service logs.LOGGING_LEVEL_APP
: Log level for application-specific logs.LOGGING_LEVEL_MONGO_DRIVER
: Log level for the MongoDB driver.APPLICATION_FILE_STORAGE_S3_SERVER_URL
: URL of the S3 server for file storage.APPLICATION_FILE_STORAGE_S3_BUCKET_NAME
: S3 bucket name for file storage.APPLICATION_FILE_STORAGE_S3_ROOT_DIRECTORY
: Root directory in the S3 bucket.APPLICATION_FILE_STORAGE_S3_CREATE_BUCKET
: Indicates if the bucket should be auto-created (true
/false
).APPLICATION_FILE_STORAGE_S3_PUBLIC_URL
: Public URL for accessing files.APPLICATION_FILE_STORAGE_S3_PRIVATE_SERVER_URL
: This environment variable specifies the URL of the S3 server used for private file storage.APPLICATION_FILE_STORAGE_S3_PRIVATE_BUCKET_NAME
: This environment variable specifies the name of the S3 bucket dedicated to private file storage.APPLICATION_FILE_STORAGE_S3_PRIVATE_CREATE_BUCKET
: This environment variable indicates whether the private S3 bucket should be created if it does not already exist. It can be set to true or false.APPLICATION_FILE_STORAGE_S3_PRIVATE_ACCESS_KEY
: This environment variable holds the access key used to authenticate to the S3 server for private file storage.APPLICATION_FILE_STORAGE_S3_PRIVATE_SECRET_KEY
: This environment variable holds the secret key used to authenticate to the S3 server for private file storage.SPRING_SERVLET_MULTIPART_MAX_FILE_SIZE: ${MULTIPART_MAX_FILE_SIZE:50MB}
: Defines the maximum file size allowed for uploads. Default is 50 MB.SPRING_SERVLET_MULTIPART_MAX_REQUEST_SIZE: ${MULTIPART_MAX_REQUEST_SIZE:50MB}
: Defines the maximum request size allowed for uploads. Default is 50 MB.MANAGEMENT_METRICS_EXPORT_PROMETHEUS_ENABLED
: Enables or disables Prometheus metrics export.Environment Variable | Description | Default Value | Possible Values |
---|---|---|---|
MANAGEMENT_PROMETHEUS_METRICS_EXPORT_ENABLED | Enables or disables Prometheus metrics export. | false | true , false |