Skip to content

Commit

Permalink
move some ckan config from .profile to ckan.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
FuhuXia committed Sep 26, 2024
1 parent efe13cd commit d3ed2aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .profile
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,6 @@ export CKANEXT__S3SITEMAP__AWS_BUCKET_NAME=$(vcap_get_service s3 .credentials.bu
export CKANEXT__S3SITEMAP__AWS_STORAGE_PATH=catalog/sitemap
export CKANEXT__S3SITEMAP__ENDPOINT_URL=https://$(vcap_get_service s3 .credentials.endpoint)

# Disable this in favor of CKANEXT__DATAGOVTHEME__JS_RECENT_VIEW
export CKANEXT__DATAGOVCATALOG__ADD_PACKAGES_TRACKING_INFO=false

# Render recent view using AJAX call to boost page loading speed
export CKANEXT__DATAGOVTHEME__JS_RECENT_VIEW=true

# Max number of resources to be allowed in a dataset to be harvested
export CKANEXT__DATAJSON__MAX_RESOURCE_COUNT=1500

# Set up the collection in Solr
echo Setting up Solr collection
export SOLR_COLLECTION=ckan
Expand Down
9 changes: 9 additions & 0 deletions ckan/setup/ckan.ini
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,15 @@ ckan.jobs.timeout = 180

ckan.tracking_enabled = True

# Disable this in favor of CKANEXT__DATAGOVTHEME__JS_RECENT_VIEW
ckanext.datagovcatalog.add_packages_tracking_info = false

# Render recent view using AJAX call to boost page loading speed
ckanext.datagovtheme.js_recent_view = true

# Max number of resources to be allowed in a dataset to be harvested
ckanext.datajson.max_resource_count = 800

## Spatial settings
ckanext.spatial.search_backend = solr-bbox
# Customize map widget
Expand Down

0 comments on commit d3ed2aa

Please sign in to comment.