aboutsummaryrefslogtreecommitdiffstats
path: root/settings.toml
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-05-21 14:36:49 -0700
committerBryan Newbold <bnewbold@archive.org>2020-05-21 14:36:49 -0700
commite49f806aa9889a9932d6fe1c3f41f401f832b617 (patch)
tree83fdc450e73182c7b9b31f90ac612a5533d3deb9 /settings.toml
parent01ae25c1bf24c8d9f7721f49122a15bf522bdbb4 (diff)
downloadfatcat-scholar-e49f806aa9889a9932d6fe1c3f41f401f832b617.tar.gz
fatcat-scholar-e49f806aa9889a9932d6fe1c3f41f401f832b617.zip
clean up domain/env detection code
Diffstat (limited to 'settings.toml')
-rw-r--r--settings.toml6
1 files changed, 5 insertions, 1 deletions
diff --git a/settings.toml b/settings.toml
index 177822d..baa7580 100644
--- a/settings.toml
+++ b/settings.toml
@@ -1,19 +1,23 @@
[default]
-FATCAT_DOMAIN = "fatcat.wiki"
+SCHOLAR_ENV = "default"
+SCHOLAR_DOMAIN = "fatcat.wiki"
I18N_LANG_DEFAULT = "en"
ELASTICSEARCH_BACKEND = "https://search.fatcat.wiki"
ELASTICSEARCH_FULLTEXT_INDEX = "scholar_fulltext"
COVID19_FULLTEXT_HOST = "https://covid19.fatcat.wiki"
[dev]
+SCHOLAR_ENV = "dev"
ELASTICSEARCH_FULLTEXT_INDEX = "dev_scholar_fulltext"
ELASTICSEARCH_BACKEND = "http://localhost:9200"
[qa]
+SCHOLAR_ENV = "qa"
ELASTICSEARCH_FULLTEXT_INDEX = "qa_scholar_fulltext"
ELASTICSEARCH_BACKEND = "http://localhost:9200"
[prod]
+SCHOLAR_ENV = "prod"
ELASTICSEARCH_FULLTEXT_INDEX = "scholar_fulltext"
ELASTICSEARCH_BACKEND = "https://search.fatcat.wiki"