default_settings.py 573 B

12345678910111213
  1. from ckan.plugins.toolkit import config
  2. # directory to save downloaded files to
  3. ARCHIVE_DIR = config.get('ckanext-archiver.archive_dir', '/tmp/archive')
  4. # Max content-length of archived files, larger files will be ignored
  5. MAX_CONTENT_LENGTH = int(config.get('ckanext-archiver.max_content_length',
  6. 50000000))
  7. USER_AGENT_STRING = config.get('ckanext-archiver.user_agent_string', None)
  8. if not USER_AGENT_STRING:
  9. USER_AGENT_STRING = '%s %s ckanext-archiver' % (
  10. config.get('ckan.site_title', ''), config.get('ckan.site_url'))