summaryrefslogtreecommitdiffstats
path: root/settings.toml
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-01-25 17:13:14 -0800
committerBryan Newbold <bnewbold@archive.org>2021-01-25 17:13:14 -0800
commit5aed3803affdb3f05b881cb90496180be45da440 (patch)
tree5a4de19de020ad063f5f85219ad24851ed7373c7 /settings.toml
parent3340910073bca6483937ed6d9e5f5b5942833c2e (diff)
downloadfatcat-scholar-5aed3803affdb3f05b881cb90496180be45da440.tar.gz
fatcat-scholar-5aed3803affdb3f05b881cb90496180be45da440.zip
refactor ES configuration setting names
Diffstat (limited to 'settings.toml')
-rw-r--r--settings.toml41
1 files changed, 25 insertions, 16 deletions
diff --git a/settings.toml b/settings.toml
index b2faf21..efdc322 100644
--- a/settings.toml
+++ b/settings.toml
@@ -3,16 +3,19 @@
SCHOLAR_ENV = "default"
SCHOLAR_ISSUEDB_PATH = "data/issue_db.sqlite"
I18N_LANG_DEFAULT = "en"
-FATCAT_ELASTICSEARCH_BACKEND = "https://search.fatcat.wiki"
-ELASTICSEARCH_BACKEND = "http://localhost:9200"
-ELASTICSEARCH_FRONTEND = "http://search-svc097.fatcat.wiki:9292"
-ELASTICSEARCH_FULLTEXT_INDEX = "scholar_fulltext"
+ELASTICSEARCH_QUERY_BASE = "http://localhost:9200"
+ELASTICSEARCH_QUERY_FULLTEXT_INDEX = "scholar_fulltext"
+ELASTICSEARCH_WRITE_BASE = "http://localhost:9200"
+ELASTICSEARCH_WRITE_FULLTEXT_INDEX = "scholar_fulltext_v01"
+ELASTICSEARCH_PUBLIC_URL = "http://localhost:9292"
THUMBNAIL_URL_PREFIX = "https://blobs.fatcat.wiki/thumbnail/pdf/"
SANDCRAWLER_DB_API = "http://aitio.us.archive.org:3030"
SANDCRAWLER_S3_API = "wbgrp-svc169.us.archive.org:8333"
GROBID_HOST = "https://grobid.qa.fatcat.wiki"
KAFKA_BROKERS = []
FATCAT_API_HOST = "https://api.fatcat.wiki/v0"
+ELASTICSEARCH_FATCAT_BASE = "https://search.fatcat.wiki"
+ELASTICSEARCH_FATCAT_RELEASE_INDEX = "fatcat_release"
INDEX_WORKER_BATCH_SIZE = 50
SENTRY_DSN = ""
ENABLE_GOATCOUNTER = false
@@ -27,9 +30,11 @@ EXCLUDE_WEB_PUBLISHERS = []
[test]
SCHOLAR_ENV = "test"
FATCAT_API_HOST = "http://disabled-during-tests-bogus.xyz:3333"
-FATCAT_ELASTICSEARCH_BACKEND = "http://disabled-during-tests-bogus.xyz:3333"
-ELASTICSEARCH_FRONTEND = "http://disabled-during-tests-bogus.xyz:3333"
-ELASTICSEARCH_BACKEND = "http://disabled-during-tests-bogus.xyz:3333"
+ELASTICSEARCH_FATCAT_BASE = "http://disabled-during-tests-bogus.xyz:3333"
+ELASTICSEARCH_QUERY_BASE = "http://disabled-during-tests-bogus.xyz:3333"
+ELASTICSEARCH_WRITE_BASE = "http://disabled-during-tests-bogus.xyz:3333"
+ELASTICSEARCH_WRITE_FULLTEXT_INDEX = "dummy_index"
+ELASTICSEARCH_PUBLIC_URL = "http://disabled-during-tests-bogus.xyz:3333"
SANDCRAWLER_DB_API = "http://disabled-during-tests-bogus.xyz:3333"
SANDCRAWLER_S3_API = "disabled-during-tests-bogus.xyz:8333"
GROBID_HOST = "http://disabled-during-tests-bogus.xyz:3333"
@@ -37,23 +42,27 @@ SCHOLAR_ISSUEDB_PATH = ":memory:"
[development]
SCHOLAR_ENV = "dev"
-ELASTICSEARCH_FULLTEXT_INDEX = "dev_scholar_fulltext"
-ELASTICSEARCH_BACKEND = "http://localhost:9200"
-ELASTICSEARCH_FRONTEND = "http://localhost:9200"
+ELASTICSEARCH_QUERY_BASE = "http://localhost:9200"
+ELASTICSEARCH_QUERY_FULLTEXT_INDEX = "dev_scholar_fulltext"
+ELASTICSEARCH_WRITE_BASE = "http://localhost:9200"
+ELASTICSEARCH_WRITE_FULLTEXT_INDEX = "dev_scholar_fulltext"
+ELASTICSEARCH_PUBLIC_URL = "http://localhost:9200"
KAFKA_BROKERS = ["localhost"]
-FATCAT_API_HOST = "http://localhost:9411/v0"
[qa]
SCHOLAR_ENV = "qa"
-ELASTICSEARCH_FRONTEND = "http://search-svc097.fatcat.wiki:9292"
-ELASTICSEARCH_FULLTEXT_INDEX = "scholar_fulltext_v01"
+ELASTICSEARCH_QUERY_BASE = "http://scholar-svc500.fatcat.wiki:9292"
+ELASTICSEARCH_WRITE_BASE = "http://localhost:9200"
+ELASTICSEARCH_PUBLIC_URL = "http://scholar-svc500.fatcat.wiki:9292"
KAFKA_BROKERS = ["wbgrp-svc263.us.archive.org"]
[prod]
SCHOLAR_ENV = "prod"
-FATCAT_ELASTICSEARCH_BACKEND = "https://search.qa.fatcat.wiki"
-ELASTICSEARCH_FULLTEXT_INDEX = "scholar_fulltext_v01"
-ELASTICSEARCH_BACKEND = "http://localhost:9200"
+ELASTICSEARCH_QUERY_BASE = "http://scholar-svc500.fatcat.wiki:9292"
+ELASTICSEARCH_QUERY_FULLTEXT_INDEX = "scholar_fulltext"
+ELASTICSEARCH_WRITE_BASE = "http://localhost:9200"
+ELASTICSEARCH_WRITE_FULLTEXT_INDEX = "scholar_fulltext_v01"
+ELASTICSEARCH_PUBLIC_URL = "http://scholar-svc500.fatcat.wiki:9292"
KAFKA_BROKERS = ["wbgrp-svc263.us.archive.org"]
ENABLE_GOATCOUNTER = true
GOATCOUNTER_ENDPOINT = "/goatcounter/count"