Matrix Docker Ansible eploy
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

238 lines
6.7 KiB

  1. ##
  2. # This is a configuration for Sygnal, the reference Push Gateway for Matrix
  3. # See: matrix.org
  4. ##
  5. ## Logging #
  6. #
  7. log:
  8. # Specify a Python logging 'dictConfig', as described at:
  9. # https://docs.python.org/3.7/library/logging.config.html#logging.config.dictConfig
  10. #
  11. setup:
  12. version: 1
  13. formatters:
  14. normal:
  15. format: "%(asctime)s [%(process)d] %(levelname)-5s %(name)s %(message)s"
  16. handlers:
  17. # This handler prints to Standard Error
  18. #
  19. stderr:
  20. class: "logging.StreamHandler"
  21. formatter: "normal"
  22. stream: "ext://sys.stderr"
  23. # This handler prints to Standard Output.
  24. #
  25. stdout:
  26. class: "logging.StreamHandler"
  27. formatter: "normal"
  28. stream: "ext://sys.stdout"
  29. # This handler demonstrates logging to a text file on the filesystem.
  30. # You can use logrotate(8) to perform log rotation.
  31. #
  32. #file:
  33. # class: "logging.handlers.WatchedFileHandler"
  34. # formatter: "normal"
  35. # filename: "./sygnal.log"
  36. loggers:
  37. # sygnal.access contains the access logging lines.
  38. # Comment out this section if you don't want to give access logging
  39. # any special treatment.
  40. #
  41. sygnal.access:
  42. propagate: false
  43. handlers: ["stdout"]
  44. level: "INFO"
  45. # sygnal contains log lines from Sygnal itself.
  46. # You can comment out this section to fall back to the root logger.
  47. #
  48. sygnal:
  49. propagate: false
  50. handlers: ["stderr"]
  51. root:
  52. # Specify the handler(s) to send log messages to.
  53. handlers: ["stderr"]
  54. level: "INFO"
  55. disable_existing_loggers: false
  56. access:
  57. # Specify whether or not to trust the IP address in the `X-Forwarded-For`
  58. # header. In general, you want to enable this if and only if you are using a
  59. # reverse proxy which is configured to emit it.
  60. #
  61. x_forwarded_for: true
  62. ## HTTP Server (Matrix Push Gateway API) #
  63. #
  64. http:
  65. # Specify a list of interface addresses to bind to.
  66. #
  67. # This example listens on the IPv4 loopback device:
  68. #bind_addresses: ['127.0.0.1']
  69. # This example listens on all IPv4 interfaces:
  70. #bind_addresses: ['0.0.0.0']
  71. # This example listens on all IPv4 and IPv6 interfaces:
  72. #bind_addresses: ['0.0.0.0', '::']
  73. bind_addresses: ['::']
  74. # Specify the port number to listen on.
  75. #
  76. port: 6000
  77. ## Proxying for outgoing connections #
  78. #
  79. # Specify the URL of a proxy to use for outgoing traffic
  80. # (e.g. to Apple & Google) if desired.
  81. # Currently only HTTP proxies with CONNECT capability are supported.
  82. #
  83. # If you do not specify a value, the `HTTPS_PROXY` environment variable will
  84. # be used if present. Otherwise, no proxy will be used.
  85. #
  86. # Default is unspecified.
  87. #
  88. #proxy: 'http://user:secret@prox:8080'
  89. ## Metrics #
  90. #
  91. metrics:
  92. ## Prometheus #
  93. #
  94. prometheus:
  95. # Specify whether or not to enable Prometheus.
  96. #
  97. enabled: false
  98. # Specify an address for the Prometheus HTTP Server to listen on.
  99. #
  100. address: '0.0.0.0'
  101. # Specify a port for the Prometheus HTTP Server to listen on.
  102. #
  103. port: 8000
  104. ## OpenTracing #
  105. #
  106. opentracing:
  107. # Specify whether or not to enable OpenTracing.
  108. #
  109. enabled: false
  110. # Specify an implementation of OpenTracing to use. Currently only 'jaeger'
  111. # is supported.
  112. #
  113. implementation: jaeger
  114. # Specify the service name to be reported to the tracer.
  115. #
  116. service_name: sygnal
  117. # Specify configuration values to pass to jaeger_client.
  118. #
  119. jaeger:
  120. sampler:
  121. type: 'const'
  122. param: 1
  123. # local_agent:
  124. # reporting_host: '127.0.0.1'
  125. # reporting_port:
  126. logging: true
  127. ## Sentry #
  128. #
  129. sentry:
  130. # Specify whether or not to enable Sentry.
  131. #
  132. enabled: false
  133. # Specify your Sentry DSN if you enable Sentry
  134. #
  135. #dsn: "https://<key>@sentry.example.org/<project>"
  136. ## Pushkins/Apps #
  137. #
  138. # Add a section for every push application here.
  139. # Specify the pushkey for the application and also the type.
  140. # For the type, you may specify a fully-qualified Python classname if desired.
  141. #
  142. #apps:
  143. # This is an example APNs push configuration
  144. #
  145. #com.example.myapp.ios:
  146. # type: apns
  147. #
  148. # # Authentication
  149. # #
  150. # # Two methods of authentication to APNs are currently supported.
  151. # #
  152. # # You can authenticate using a key:
  153. # keyfile: my_key.p8
  154. # key_id: MY_KEY_ID
  155. # team_id: MY_TEAM_ID
  156. # topic: MY_TOPIC
  157. #
  158. # # Or, a certificate can be used instead:
  159. # certfile: com.example.myApp_prod_APNS.pem
  160. #
  161. # # This is the maximum number of in-flight requests *for this pushkin*
  162. # # before additional notifications will be failed.
  163. # # (This is a robustness measure to prevent one pushkin stacking up with
  164. # # queued requests and saturating the inbound connection queue of a load
  165. # # balancer or reverse proxy).
  166. # # Defaults to 512 if unset.
  167. # #
  168. # #inflight_request_limit: 512
  169. #
  170. # # Specifies whether to use the production or sandbox APNs server. Note that
  171. # # sandbox tokens should only be used with the sandbox server and vice versa.
  172. # #
  173. # # Valid options are:
  174. # # * production
  175. # # * sandbox
  176. # #
  177. # # The default is 'production'. Uncomment to use the sandbox instance.
  178. # #platform: sandbox
  179. # This is an example GCM/FCM push configuration.
  180. #
  181. #com.example.myapp.android:
  182. # type: gcm
  183. # api_key: your_api_key_for_gcm
  184. #
  185. # # This is the maximum number of connections to GCM servers at any one time
  186. # # the default is 20.
  187. # #max_connections: 20
  188. #
  189. # # This is the maximum number of in-flight requests *for this pushkin*
  190. # # before additional notifications will be failed.
  191. # # (This is a robustness measure to prevent one pushkin stacking up with
  192. # # queued requests and saturating the inbound connection queue of a load
  193. # # balancer or reverse proxy).
  194. # # Defaults to 512 if unset.
  195. # #
  196. # #inflight_request_limit: 512
  197. #
  198. # # This allows you to specify additional options to send to Firebase.
  199. # #
  200. # # Of particular interest, admins who wish to support iOS apps using Firebase
  201. # # probably wish to set content_available, and may need to set mutable_content.
  202. # # (content_available allows your iOS app to be woken up by data messages,
  203. # # and mutable_content allows your notification to be modified by a
  204. # # Notification Service app extension).
  205. # #
  206. # # See https://firebase.google.com/docs/cloud-messaging/http-server-ref
  207. # # for the exhaustive list of valid options.
  208. # #
  209. # # Do not specify `data`, `priority`, `to` or `registration_ids` as they may
  210. # # be overwritten or lead to an invalid request.
  211. # #
  212. # #fcm_options:
  213. # # content_available: true
  214. # # mutable_content: true
  215. apps: {{ matrix_sygnal_apps|to_json }}