forked from OpenTreeOfLife/opentree
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp_config.example
More file actions
64 lines (59 loc) · 3.4 KB
/
app_config.example
File metadata and controls
64 lines (59 loc) · 3.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Copy this file to "config" (and replace tokens below) to make it active
#
# DO NOT CHANGE the formatting of assignment lines (removing spaces, etc) in
# this file! The 'config.example' files are used by our deployment scripts to
# build the final config for each web2py app. Changes here might keep it
# from being built properly.
# paths for the study/status page (DEPRECATED)
[paths]
#nexsonsdir = /usr/share/open-tree/avatol_nexsons
#study_to_status_script = /usr/share/open-tree/avatol_nexsons/nexson2treemach/study_nexson_to_status_html.py
[apis]
# Settings for a registered app on GitHub, for example on devtree:
# <https://github.com/settings/apps/open-tree-tree-explorer-dev>
github_app_id = YOUR_APP_ID_HERE
github_client_id = YOUR_CLIENT_ID_HERE
github_redirect_uri = YOUR_REDIRECT_URI_HERE
# DON'T INCLUDE 'github_client_secret' value here. For better security, this is
# loaded from a separate file and added to config data on-the-fly.
#
# github_app_installation_id can be found from the installing organization's page, e.g.
# <https://github.com/organizations/OpenTreeOfLife/settings/installations>
# (the installation ID is in the URL of the Configure button here)
github_app_installation_id = YOUR_APP_INSTALLATION_ID_HERE
# List public-facing base URL for supporting data services
# (NOTE that these are used by both server- and client-side code)
[api_base_urls]
default_apis = http://opentree.myDEVserver.org
production_apis = http://opentree.myPRODUCTIONserver.org
# We'll also need the production hostname to link to its curation tool from dev
curation_production_webapp_url = https://tree.opentreeoflife.org/curator
#collections_api_base_url = https://devapi.opentreeoflife.org
#favorites_api_base_url = https://devapi.opentreeoflife.org
# Cached versions of some APIs will speed up repeated calls (see below).
# These use a simple web2py cache implemented in phylesystem-api
# N.B. This must be on the *same* host as the cached service!
CACHED_default_apis = https://opentree.myDEVserver/cached
CACHED_production_apis = https://opentree.myPRODUCTIONserver/cached
# Building on the URLs above, complete the public-facing URL for all methods
# (again, these should work from both server- and client-side code)
#
# NOTE: In our example setup, all service methods are proxied through Apache as
# URLs within the main opentree site. So we assume that partial paths '/db/data/'
# are handled in the ProxyPass statement.
[api_endpoints]
getDraftTreeID_url = {default_apis}/v3/tree_of_life/about
getSyntheticTree_url = {CACHED_default_apis}/v3/tree_of_life/subtree
getDraftSubtree_url = {default_apis}/v3/tree_of_life/subtree
doTNRSForAutocomplete_url = {default_apis}/v3/tnrs/autocomplete_name
getContextsJSON_url = {CACHED_default_apis}/v3/tnrs/contexts
getSynthesisSourceList_url = {CACHED_default_apis}/v3/tree_of_life/about
findAllStudies_url = {CACHED_production_apis}/v3/studies/find_studies
singlePropertySearchForStudies_url = {production_apis}/v3/studies/find_studies
singlePropertySearchForTrees_url = {production_apis}/v3/studies/find_trees
getTaxonInfo_url = {default_apis}/v3/taxonomy/taxon_info
# Include one phylesystem-api method to download NexSON from Bibliographic References page
API_load_study_GET_url = {production_apis}/v3/study/{STUDY_ID}
# The synth-tree viewer GUI includes links to a curation app. For "curatorless"
# installations, this should point to a working public curation app.
curation_webapp_url = YOUR_CURATION_APP_URL