From e49f806aa9889a9932d6fe1c3f41f401f832b617 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 21 May 2020 14:36:49 -0700 Subject: clean up domain/env detection code --- settings.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'settings.toml') 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" -- cgit v1.2.3