forked from ontoportal/ontologies_linked_data
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #187 from ncbo/develop
Merge Develop to Master, release v5.28.0
- Loading branch information
Showing
8 changed files
with
441 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,22 +24,18 @@ def config(&block) | |
@settings.search_server_url ||= 'http://localhost:8983/solr/term_search_core1' | ||
@settings.property_search_server_url ||= 'http://localhost:8983/solr/prop_search_core1' | ||
@settings.repository_folder ||= './test/data/ontology_files/repo' | ||
@settings.rest_url_prefix ||= 'http://data.bioontology.org/' | ||
@settings.rest_url_prefix ||= 'http://data.bioontology.org/' | ||
@settings.enable_security ||= false | ||
@settings.enable_slices ||= false | ||
|
||
# Java/JVM options | ||
@settings.java_max_heap_size ||= '10240M' | ||
### these params should be not ussed any more | ||
# removed so that dependencies shout | ||
# | ||
# @settings.redis_host ||= "localhost" | ||
# @settings.redis_port ||= 6379 | ||
# ### | ||
|
||
@settings.ui_name ||= 'Bioportal' | ||
@settings.ui_host ||= 'bioportal.bioontology.org' | ||
@settings.replace_url_prefix ||= false | ||
@settings.id_url_prefix ||= 'http://data.bioontology.org/' | ||
@settings.id_url_prefix ||= "http://data.bioontology.org/" | ||
|
||
@settings.queries_debug ||= false | ||
@settings.enable_monitoring ||= false | ||
@settings.cube_host ||= 'localhost' | ||
|
@@ -50,11 +46,11 @@ def config(&block) | |
@settings.http_redis_host ||= 'localhost' | ||
@settings.http_redis_port ||= 6379 | ||
|
||
#Caching goo | ||
# Caching goo | ||
@settings.goo_redis_host ||= 'localhost' | ||
@settings.goo_redis_port ||= 6379 | ||
|
||
#Ontology Analytics Redis | ||
# Ontology Analytics Redis | ||
@settings.ontology_analytics_redis_host ||= 'localhost' | ||
@settings.ontology_analytics_redis_port ||= 6379 | ||
|
||
|
@@ -69,7 +65,8 @@ def config(&block) | |
|
||
# Email settings | ||
@settings.enable_notifications ||= false | ||
@settings.email_sender ||= '[email protected]' # Default sender for emails | ||
# Default sender From email address | ||
@settings.email_sender ||= '[email protected]' | ||
@settings.email_override ||= '[email protected]' # By default, all email gets sent here. Disable with email_override_disable. | ||
@settings.email_disable_override ||= false | ||
@settings.smtp_host ||= 'localhost' | ||
|
@@ -79,6 +76,13 @@ def config(&block) | |
@settings.smtp_auth_type ||= :none # :none, :plain, :login, :cram_md5 | ||
@settings.smtp_domain ||= 'localhost.localhost' | ||
@settings.enable_starttls_auto ||= false # set to true for use with gmail | ||
# Support contact email address used in email notification send to ontoportal users. | ||
@settings.support_contact_email ||= '[email protected]' | ||
# List of contact emails for OntoPortal site administrators | ||
@settings.ontoportal_admin_emails ||= ['[email protected]'] | ||
# Send administrative notifications for events including new user and | ||
# ontology creation to OntoPortal site admins | ||
@settings.enable_administrative_notifications ||= true | ||
|
||
# number of times to retry a query when empty records are returned | ||
@settings.num_retries_4store ||= 10 | ||
|
@@ -89,12 +93,6 @@ def config(&block) | |
# Override defaults | ||
yield @settings, overide_connect_goo if block_given? | ||
|
||
unless @settings.redis_host.nil? | ||
puts "Error: 'redis_host' is not a valid conf parameter." | ||
puts ' Redis databases were split into multiple hosts (09/22/13).' | ||
raise Exception, 'redis_host is not a valid conf parameter.' | ||
end | ||
|
||
# Check to make sure url prefix has trailing slash | ||
@settings.rest_url_prefix = @settings.rest_url_prefix + '/' unless @settings.rest_url_prefix[-1].eql?('/') | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.