You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.6 KiB

  1. # Postgres database URL for storing sticker packs and other things.
  2. database: postgres://username:password@hostname/dbname
  3. # Settings for the actual HTTP server
  4. server:
  5. # The IP and port to listen to.
  6. hostname: 0.0.0.0
  7. port: 29329
  8. # Public base URL where the server is visible.
  9. public_url: https://example.com
  10. # Override path from where to load UI resources.
  11. # Set to false to using pkg_resources to find the path.
  12. override_resource_path: false
  13. # Whether or not to trust X-Forwarded-For headers for determining the request IP.
  14. trust_forward_headers: false
  15. # Telegram configuration for downloading sticker packs. In the future, this will be client-side and
  16. # none of this configuration will be necessary.
  17. telegram_import:
  18. # Create your own bot at https://t.me/BotFather
  19. bot_token: null
  20. # Matrix homeserver access details. This is only used for uploading Telegram-imported stickers.
  21. homeserver:
  22. address: https://example.com
  23. access_token: null
  24. # Permissions for who is allowed to use the sticker picker.
  25. #
  26. # Values are objects that should contain boolean values each permission:
  27. # access - Access the sticker picker and use existing packs.
  28. # create_packs - Create packs by uploading images.
  29. # telegram_import - Create packs by importing from Telegram. Images are stored on
  30. #
  31. # Permission keys may be user IDs, server names or "*". If a server name or user ID permission
  32. # doesn't specify some keys, they'll be inherited from the higher level.
  33. permissions:
  34. "*":
  35. access: true
  36. create_packs: true
  37. telegram_import: false
  38. "example.com":
  39. telegram_import: true
  40. # Python logging configuration.
  41. #
  42. # See Configuration dictionary schema in the Python documentation for more info:
  43. # https://docs.python.org/3.9/library/logging.config.html#configuration-dictionary-schema
  44. logging:
  45. version: 1
  46. formatters:
  47. colored:
  48. (): mautrix.util.logging.ColorFormatter
  49. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  50. normal:
  51. format: "[%(asctime)s] [%(levelname)s@%(name)s] %(message)s"
  52. handlers:
  53. file:
  54. class: logging.handlers.RotatingFileHandler
  55. formatter: normal
  56. filename: ./sticker.server.log
  57. maxBytes: 10485760
  58. backupCount: 10
  59. console:
  60. class: logging.StreamHandler
  61. formatter: colored
  62. loggers:
  63. mau:
  64. level: DEBUG
  65. aiohttp:
  66. level: INFO
  67. root:
  68. level: DEBUG
  69. handlers: [file, console]