瀏覽代碼

Update example config

Tulir Asokan 2 年之前
父節點
當前提交
53527d5b6e
共有 3 個文件被更改,包括 9 次插入4 次删除
  1. 6 1
      example-config.yaml
  2. 1 1
      go.mod
  3. 2 2
      go.sum

+ 6 - 1
example-config.yaml

@@ -1,7 +1,7 @@
 # Homeserver details.
 homeserver:
     # The address that this appservice can use to connect to the homeserver.
-    address: http://localhost:8008
+    address: https://example.com
     # The domain of the homeserver (for MXIDs, etc).
     domain: example.com
 
@@ -60,6 +60,11 @@ appservice:
     # Requires MSC2409 support (i.e. Synapse 1.22+).
     ephemeral_events: true
 
+    # Should incoming events be handled asynchronously?
+    # This may be necessary for large public instances with lots of messages going through.
+    # However, messages will not be guaranteed to be bridged in the same order they were sent in.
+    async_transactions: false
+
     # Authentication tokens for AS <-> HS communication. Autogenerated; do not modify.
     as_token: "This value is generated when generating the registration"
     hs_token: "This value is generated when generating the registration"

+ 1 - 1
go.mod

@@ -12,7 +12,7 @@ require (
 	github.com/stretchr/testify v1.8.1
 	github.com/yuin/goldmark v1.5.3
 	maunium.net/go/maulogger/v2 v2.3.2
-	maunium.net/go/mautrix v0.12.4-0.20221122192554-26c9ef6e7157
+	maunium.net/go/mautrix v0.12.4-0.20221123200106-2ea51bee6cff
 )
 
 require (

+ 2 - 2
go.sum

@@ -68,5 +68,5 @@ maunium.net/go/mauflag v1.0.0 h1:YiaRc0tEI3toYtJMRIfjP+jklH45uDHtT80nUamyD4M=
 maunium.net/go/mauflag v1.0.0/go.mod h1:nLivPOpTpHnpzEh8jEdSL9UqO9+/KBJFmNRlwKfkPeA=
 maunium.net/go/maulogger/v2 v2.3.2 h1:1XmIYmMd3PoQfp9J+PaHhpt80zpfmMqaShzUTC7FwY0=
 maunium.net/go/maulogger/v2 v2.3.2/go.mod h1:TYWy7wKwz/tIXTpsx8G3mZseIRiC5DoMxSZazOHy68A=
-maunium.net/go/mautrix v0.12.4-0.20221122192554-26c9ef6e7157 h1:x2SiQnZQeJJ8qYCwEJ/rN0SEpGgT/Ct8kqjB4y/7vM4=
-maunium.net/go/mautrix v0.12.4-0.20221122192554-26c9ef6e7157/go.mod h1:uOUjkOjm2C+nQS3mr9B5ATjqemZfnPHvjdd1kZezAwg=
+maunium.net/go/mautrix v0.12.4-0.20221123200106-2ea51bee6cff h1:qcOCJCuXnLSTpMuVhyUGuuo8WEHWd4FfS8LjztMbOGs=
+maunium.net/go/mautrix v0.12.4-0.20221123200106-2ea51bee6cff/go.mod h1:uOUjkOjm2C+nQS3mr9B5ATjqemZfnPHvjdd1kZezAwg=