From e26577169b6414db59d91925500ab98c7d2191c7 Mon Sep 17 00:00:00 2001 From: Oliver <20188437+olivergrabinski@users.noreply.github.com> Date: Wed, 12 Jun 2024 13:56:55 +0200 Subject: [PATCH] Add second aws config (#5029) --- infra/delta-aws.conf | 177 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 177 insertions(+) create mode 100644 infra/delta-aws.conf diff --git a/infra/delta-aws.conf b/infra/delta-aws.conf new file mode 100644 index 0000000000..a42ccf5489 --- /dev/null +++ b/infra/delta-aws.conf @@ -0,0 +1,177 @@ +app { + description { + env = "production" + } + + database { + read = ${app.defaults.database.access} { + pool-size = 15 + } + write = ${app.defaults.database.access} { + pool-size = 15 + } + streaming = ${app.defaults.database.access} { + pool-size = 50 + } + + name = "nexus_user" + username = "nexus_user" + password = ${POSTGRES_PASSWORD} + + tables-autocreate = true + } + + projections { + batch { + max-elements = 500 + } + } + + defaults { + database { + access { + host = ${POSTGRES_HOST} + port = 5432 + } + } + + query { + batch-size = 30 + } + + pagination { + size-limit = 2000 + } + + indexing { + prefix = "nexus" + } + } + + fusion { + enable-redirects = true + base = "https://nexus-fusion.shapes-registry.org/nexus/web" + } + + http { + interface = 0.0.0.0 + base-uri = "https://nexus-delta.shapes-registry.org/v1" + } + + monitoring { + trace { + sampler = "never" + } + } + + projects { + deletion { + enabled = true + } + } +} + +plugins { + blazegraph { + enabled = true + base = ${BLAZEGRAPH_ENDPOINT} + batch { + max-elements = 2 + } + } + + elasticsearch { + enabled = true + base = ${ELASTICSEARCH_ENDPOINT} + credentials { + username = "elastic" + password = ${ELASTICSEARCH_PASSWORD} + } + batch { + max-elements = 10 + } + } + + composite-views { + enabled = false + elasticsearch-batch { + max-elements = 10 + } + blazegraph-batch { + max-elements = 2 + } + sink-config = "batch" + min-interval-rebuild = 10 minutes + } + + graph-analytics { + enabled = false + batch = { + max-elements = 10 + } + } + + project-deletion { + enabled = false + } + + search { + enabled = false + fields = /opt/search-config/fields.json + indexing { + context = /opt/search-config/search-context.json + mapping = /opt/search-config/mapping.json + settings = /opt/search-config/settings.json + query = /opt/search-config/construct-query.sparql + resource-types = /opt/search-config/resource-types.json + rebuild-strategy = 10 minutes + } + suites = { + sbo = [ + "public/forge", + "public/hippocampus", + "public/hippocampus-hub", + "public/multi-vesicular-release", + "public/ngv", + "public/ngv-anatomy", + "public/nvg", + "public/sscx", + "public/thalamus", + "public/topological-sampling", + "bbp/lnmce", + "bbp/mmb-point-neuron-framework-model", + "bbp/ncmv3", + "bbp/hippocampus", + "bbp-external/seu", + "bbp/mouselight" + ] + } + } + + storage { + enabled = true + storages { + disk { + default-volume = /opt/disk-storage + } + remote-disk { + enabled = false + } + amazon { + enabled = true + use-default-credential-provider = true + default-bucket = "nexus-bucket-production" + prefix = "/sbo/data/project/" + delegation { + private-key = ${DELEGATION_PRIVATE_KEY} + token-duration = "3 days" + } + } + } + } + + serivce-account { + realm = "SBO" + subject = "nexus-delta" + } +}