settings.py 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # -*- coding: utf-8 -*-
  2. """
  3. (c) 2020 - Copyright ...
  4. Authors:
  5. zPlus <zplus@peers.community>
  6. """
  7. # DEPRECATED replace by pagure's own DB_URL
  8. # SqlAlchemy URL string needed to specify which database to use for storing
  9. # federation data (eg. Activities).
  10. # NOTE: It's possible to specify the same URL used by pagure, in which case the
  11. # new tables will be created in the pagure database itself, but it's a better
  12. # idea to keep the two separate and avoid changing the pagure schema.
  13. # DATABASE = 'sqlite:////home/git/pagure_local/forgefed.sqlite'
  14. # How many items to show for collections, eg. as:followers and as:inbox. If a
  15. # collection contains more than COLLECTION_SIZE it will be paginated.
  16. COLLECTION_SIZE = 100
  17. # Actors use RSA keys to sign HTTP POST requests. These keys are automatically
  18. # created for actors.
  19. HTTP_SIGNATURE_KEY_BITS = 2048
  20. # When an Activity is sent to a remote object, that object can be an Actor or a
  21. # Collection containing other objects. Because a Collection can contain another
  22. # Collection, we could get stuck into sending activities to followers of
  23. # followers of followers... This option sets the maximum number of indirections
  24. # that we follow when sending an Activity.
  25. # https://www.w3.org/TR/activitypub/#delivery
  26. #
  27. # Examples:
  28. # 0 = Send only to actual actors, do not search any Collection
  29. # 1 = Send to actors and immediate Collections only (eg. as:followers). If
  30. # as:followers contains another Collection, the latter won't be searched.
  31. DELIVERY_DEPTH = 1
  32. # The plugin makes use of the Python logging module. This variable sets the
  33. # level of logging that should be produced. A log level is essentially a
  34. # natural number. The logs with a value greater than or equal to LOG_LEVEL will
  35. # be printed, all the others will be ignored.
  36. # https://docs.python.org/3/library/logging.html#levels
  37. import logging
  38. LOG_LEVEL=logging.DEBUG
  39. # This is required during plugin initialization to find the pagure templates
  40. # folder.
  41. # It is also required for the "tasks" package. When the celery task is started
  42. # from the command line, it does not know where the pagure folder is because
  43. # it's a standalone process.
  44. PAGURE_PATH='/home/git/pagure'