settings.py 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # -*- coding: utf-8 -*-
  2. """
  3. (c) 2020 - Copyright ...
  4. Authors:
  5. zPlus <zplus@peers.community>
  6. """
  7. # This plugin uses rdflib to work with RDF objects. Where should the plugin
  8. # store the graph?
  9. # Accepted values:
  10. # berkeleydb Persist graph with Berkeley DB
  11. # sqlalchemy Persist graph with SQLAlchemy
  12. # TODO Add support for using an existing SPARQL server. rdflib.plugins.stores.sparqlstore.SPARQLUpdateStore
  13. STORAGE = 'sqlalchemy'
  14. # Use 4 slashes for an absolute URL
  15. # https://docs.sqlalchemy.org/en/13/dialects/sqlite.html#dialect-sqlite-pysqlite-connect
  16. #
  17. # STORAGE_PATH = '/home/git/pagure_local/forgefed_graph.berkeleydb'
  18. STORAGE_PATH = 'sqlite:////home/git/pagure_local/forgefed_graph.sqlite'
  19. # How many items to show for collections, eg. as:followers and as:inbox. If a
  20. # collection contains more than COLLECTION_SIZE it will be paginated.
  21. COLLECTION_SIZE = 100
  22. # Actors use RSA keys to sign HTTP POST requests. These keys are automatically
  23. # created for actors.
  24. HTTP_SIGNATURE_KEY_BITS = 2048
  25. # When an Activity is sent to a remote object, that object can be an Actor or a
  26. # Collection containing other objects. Because a Collection can contain another
  27. # Collection, we could get stuck into sending activities to followers of
  28. # followers of followers... This option sets the maximum number of indirections
  29. # that we follow when sending an Activity.
  30. # https://www.w3.org/TR/activitypub/#delivery
  31. #
  32. # Examples:
  33. # 0 = Send only to actual actors, do not search any Collection
  34. # 1 = Send to actors and immediate Collections only (eg. as:followers). If
  35. # as:followers contains another Collection, the latter won't be searched.
  36. DELIVERY_DEPTH = 1
  37. # The plugin makes use of the Python logging module. This variable sets the
  38. # level of logging that should be produced. A log level is essentially a
  39. # natural number. The logs with a value greater than or equal to LOG_LEVEL will
  40. # be printed, all the others will be ignored.
  41. # https://docs.python.org/3/library/logging.html#levels
  42. import logging
  43. LOG_LEVEL=logging.DEBUG
  44. # This is required during plugin initialization to find the pagure templates
  45. # folder.
  46. # It is also required for the "tasks" package. When the celery task is started
  47. # from the command line, it does not know where the pagure folder is because
  48. # it's a standalone process.
  49. PAGURE_PATH='/home/git/pagure'