# Default configuration for extension with alias: "ember_nexus" ember_nexus: # Roles are named sets of capabilities, which can be assigned to users. Capabilities unlock instance-wide features and do not grant access to elements, except that user.manage and group.manage make all users and groups readable. Defining roles replaces the default roles completely, e.g. to define a limited admin role or none at all. Allowed capabilities are role.assign, user.manage, group.manage, index.manage, schema.manage, embedding.create and the wildcard "*", which stands for all capabilities. The default is the single role admin with the capability "*"; the key of each entry is the name of the role. roles: # Examples: # admin: { capabilities: ['*'] } # schema-manager: { capabilities: [schema.manage] } # Prototype name: # Capabilities of the role. capabilities: [] # Required # Affects how many elements can be returned in collection responses. pageSize: # Minimum number of elements which are always returned, if they exist. min: 5 # Default number of elements which are returned if they exist. default: 25 # Maximum number of elements which are returned in a single response. Should not be way more than 100, as performance problems may arise. max: 100 # Handles the /register endpoint. register: # If true, the /register endpoint is active and anonymous users can create accounts. enabled: true # The property name of the identifier. Identifier must be unique across the API, usually the email. uniqueIdentifier: email # Either false or a regex for checking the identifier content. Defaults to a loose check for an "@" sign, since the identifier is an email address by default. uniqueIdentifierRegex: '/^[^\s@]+@[^\s@]+$/' # Roles which are assigned to users when they register via the /register endpoint, e.g. a member role. Every role must be defined in "roles". The roles are assigned once, when the account is created; changing this list does not affect existing users. Users created via the command user:create only get the roles given explicitly. defaultRoles: [] # Example: # - member # Configures settings related to the execution of expressions expression: # Minimum length for executable expressions to trigger a warning in the logs. warningLength: 512 # Maximum length for executable expressions. Exceeding the limit will throw an exception. maxLength: 10240 # Maximum runtime of the Go Expr Lang CLI call in milliseconds, at least 100. Can be set to null to disable the limit. timeoutInMilliseconds: 5000 # Maximum number of positions which one call of a geo function (e.g. geoContains) reads, summed over its geometry arguments. Larger inputs fail the expression. maxGeoPositions: 1000 # Configures the providers which turn texts into vectors (embeddings). Providers must offer the request and response format of OpenAI's POST /v1/embeddings, which is supported by most hosted and local inference servers. Vector properties of schemas and the search step text-embedding reference providers by their name. embedding: # Embedding providers, the key of each entry is the name of the provider. No provider is defined by default. providers: # Example: # openai: { url: 'https://api.openai.com/v1/embeddings', model: text-embedding-3-small, dimensions: 1536, apiKey: '%env(OPENAI_API_KEY)%' } # Prototype name: # URL of the endpoint, e.g. https://api.openai.com/v1/embeddings. url: ~ # Required # Name of the model, sent as "model" with every request. model: ~ # Required # Number of dimensions of the vectors which the model returns. Vector properties which use the provider get this number of dimensions, vectors of other lengths are rejected. dimensions: ~ # Required # Sent as bearer token in the Authorization header, if set. Use an environment variable or a Symfony secret, e.g. "%env(OPENAI_API_KEY)%", instead of writing the key into the file. apiKey: null # If true, the number of dimensions is sent as "dimensions" with every request. Only some models support it, e.g. OpenAI's text-embedding-3 models, which can shorten their vectors. sendDimensions: false # If true, the background job sends several texts in one request, which is faster and often cheaper. Disable it for providers which accept a single text only. batch: true # Maximum number of texts in one request, if batch is true. batchSize: 32 # Maximum number of requests the background job sends to this provider at the same time. Requests to different providers always run at the same time. concurrency: 4 # Maximum duration of one request in seconds, including the connection. timeoutInSeconds: 30 # Path of a file with the certificates of trusted certificate authorities (PEM). If not set, the certificate bundle of the system is used, /etc/ssl/certs/ca-certificates.crt in the Docker image. caFile: null # Configures settings related to the search endpoint. search: # If true, failed search steps and expressions are explained with the debug data and allowlisted diagnostics of the database. If false, only a short 400 error is returned, without debug data and failure details. explainFailures: true # Configures the GET /{id}/access endpoint, which lists who is allowed to do what with an element. elementAccess: # Maximum number of distinct users and groups in one response. If more would be listed, the list is cut and "truncated" is set to true. maxPrincipals: 50 # Configures the schemas of types. schema: # Maximum number of rules of one schema. Every rule is evaluated on every write of an element of the type, so more rules make writes slower. maxRules: 16 # Configures the schedule of the element type index (id to type lookup table), which is built by the mphf:build command. The command runs every few minutes, but only builds if the next build time has come or the Redis overlay is big. mphf: # Time between two scheduled builds. At most 7 days. intervalInSeconds: 86400 # After each build, the next build time is moved by a random part of this value, earlier or later, so that instances which run side by side do not build at the same time. Must not be bigger than the interval. varianceIntervalInSeconds: 10800 # If more elements than this were created since the last build, the next run of mphf:build builds right away, whatever the next build time is. overlayThresholdInElements: 100000 # Configures the /instance-configuration endpoint. instanceConfiguration: # If true, enables the endpoint. If false, 403 error messages are returned. enabled: true # If false, the version number is omitted. showVersion: true # Configures Cross-Origin Resource Sharing (CORS). cors: # Origins which may use the API from a browser, either a single origin, a list of origins (e.g. "https://app.example.com") or "*" for all origins. If not set, the origin of each request is sent back (parrot mode), i.e. every origin is allowed. Responses to requests from unlisted origins carry no Access-Control-Allow-Origin header. allowedOrigins: null # Configures token settings. token: # Minimum lifetime of created tokens. minLifetimeInSeconds: 1800 # Default lifetime of created tokens. defaultLifetimeInSeconds: 10800 # Maximum lifetime of created tokens. Can be set to false to disable maximum limit. maxLifetimeInSeconds: 34214400 # Expired tokens will be deleted after defined time. Can be set to false to disable auto delete feature. tokenDeleteExpiredTokensAutomaticallyInSeconds: 1209600 # Configures the cache. cache: # Seed used to generate Etag values. Changing it invalidates all data cached by clients. etagSeed: '' # Maximum number of items in a collection for which to generate Etags. Bigger collection do not contain Etags due to performance problems. etagUpperLimitInCollectionEndpoints: 100 # Configures behavior related to files. file: # Maximum supported file size in bytes. Note: Upstream services like S3 have limits of their own (5TB). maxFileSizeInBytes: 10737418240 # Number of seconds after which unfinished uploads are expired. uploadExpiresAfterFirstRequestInSeconds: 10800 # Number of digits for the upload chunk counter. Number of max chunks can be limited by upstream services, e.g. AWS can only support up to 10.000 chunks, i.e. a chunk digits length of 4. uploadChunkDigitsLength: 4 # Minimum size in bytes of uploaded chunks. Limited by the S3 provider, e.g. AWS requires that chunks are at least 5 MiB big. uploadMinChunkSizeInBytes: 5242880 # Maximum size in bytes of uploaded chunks. Limited by the S3 provider, Caddy and the PHP configuration. uploadMaxChunkSizeInBytes: 105906176 # Grace period after an upload expires during which the cron:delete-expired-uploads command will not yet delete it. Gives clients a bit of leeway past the expiration date before their partial upload and its S3 chunks are removed. expiredUploadCanBeDeletedAfterExpirationInSeconds: 3600 # How long the record of a finished (completed or failed) resumable upload stays available for status requests; afterwards its URL answers 404. Counted from the end of the finalization, the record is deleted by the cron:delete-expired-uploads command once this period and its grace period have passed. finishedUploadRetentionInSeconds: 10800 # Name of the S3 bucket used for storage of files. Multiple S3 providers are supported (e.g. MinIO, VersityGW, SeaweedFS), but this bucket and the upload bucket must be hosted on the same S3 provider/instance, and must not share the same name. S3StorageBucket: api-storage # Name of the S3 bucket used for temporary storage of uploads. Must be hosted on the same S3 provider/instance as the storage bucket, and must not share its name. S3UploadBucket: api-upload # Number of levels (folders) used within the S3 storage bucket. S3StorageBucketLevels: 3 # Number of characters used for each level (folder) in the S3 storage bucket. S3StorageBucketLevelLength: 2 # Number of levels (folders) used within the S3 upload bucket. S3UploadBucketLevels: 2 # Number of characters used for each level (folder) in the S3 upload bucket. S3UploadBucketLevelLength: 2 # Maximum number of concurrent HTTP connections kept open to the S3 host. Used to parallelize otherwise sequential S3 operations, e.g. copying the parts of a large file during merge. Must be greater than 1. S3MaxHostConnections: 16