Neil Alexander
ea35b48fec
Remove HTTP API checks as always false, remove unused topic
2020-06-10 10:39:54 +01:00
Neil Alexander
b4ff2e3f16
Merge branch 'master' into yggdrasil
2020-06-10 10:38:40 +01:00
Kegsay
98cb0705ea
Remove unused UserUpdates producer ( #1109 )
2020-06-10 10:34:22 +01:00
Neil Alexander
9191e0e579
Fix copyright notices
2020-06-10 09:40:42 +01:00
Neil Alexander
450f4d17b7
Determinate yamux roles
2020-06-10 09:32:25 +01:00
Neil Alexander
51dfb3aaf9
gocyclo, for a change
2020-06-09 16:32:04 +01:00
Neil Alexander
263fea7aed
add -peer switch
2020-06-09 16:12:48 +01:00
Neil Alexander
512377d45b
Change default instance name/port
2020-06-09 16:00:24 +01:00
Neil Alexander
8caeb01226
MarshalIndent
2020-06-09 15:59:13 +01:00
Neil Alexander
4dc166a6ca
Update config
2020-06-09 15:57:49 +01:00
Neil Alexander
f5ce0325ac
Update yggdrasil
2020-06-09 15:45:09 +01:00
Neil Alexander
de09f4c759
Tweaks
2020-06-09 15:42:22 +01:00
Neil Alexander
563b946e34
Set defaults
2020-06-09 15:32:46 +01:00
Neil Alexander
418d98ba97
Update go.mod/go.sum
2020-06-09 14:35:57 +01:00
Neil Alexander
38028f0635
Update to use monolith stuff
2020-06-09 14:34:24 +01:00
Neil Alexander
b339a373e9
Merge branch 'master' of github.com:matrix-org/dendrite into neilalexander/yggdemo
2020-06-09 14:32:20 +01:00
Neil Alexander
5b0eb9cd4d
Comments
2020-06-09 14:32:11 +01:00
Neil Alexander
566d37ec01
Updates
2020-06-09 13:41:17 +01:00
Neil Alexander
e2d9f86569
Updates to yamux
2020-06-09 13:27:30 +01:00
Neil Alexander
23d2341811
Yamux
2020-06-09 12:22:58 +01:00
Neil Alexander
eee22f53f9
Muxing?
2020-06-09 12:14:51 +01:00
Kegsay
85ac8a3f5b
Factor out how monolith routes get added ( #1107 )
...
Previously we had 3 monoliths:
- dendrite-monolith-server
- dendrite-demo-libp2p
- dendritejs
which all had their own of setting up public routes. Factor this
out into a new `setup.Monolith` struct which gets all dependencies
set as fields. This is different to `basecomponent.Base` which
doesn't provide any way to set configured deps (e.g public rooms db)
Part of a larger process to clean up how we initialise Dendrite.
2020-06-09 12:07:33 +01:00
Neil Alexander
73274472a5
Initial work on Yggdrasil demo
2020-06-08 18:35:57 +01:00
Kegsay
4f171c56a8
Split out SetupFooComponent ( #1106 )
...
* Split out adding HTTP routes from making internal APIs for clarity
* Split out more components
* Split out more things
* Finish converting
* internal mux for internal routes
2020-06-08 15:51:07 +01:00
Neil Alexander
cdb9a11571
Update gomatrixserverlib
2020-06-08 13:56:03 +01:00
Neil Alexander
67784ecb56
Nuke old Docker stuff ( #1104 )
...
* Remove old Docker stuff
* Move hub stuff to upper level docker directory
* Build monolith images
* Update README.md
* Update paths
* Update README.md
2020-06-05 19:00:30 +01:00
Neil Alexander
e7b19d2c70
More flexible caching ( #1101 )
2020-06-05 16:42:01 +01:00
Neil Alexander
76ff47c052
Use AuthChainProvider to try and speed up federated joins ( #1100 )
...
* Use MissingAuthEventHandler on performjoin to try and speed up cases where we have missing events
* Update gomatrixserverlib
* Use supplied room version
* Use AuthChainProvider
* Tweaks
* Update gomatrixserverlib
* Signature checks
2020-06-05 11:48:52 +01:00
Kegsay
29a20d1da7
General cleanup when making components ( #1098 )
...
* Remove ParseMonolith/LoadMonolith
* cleanup which components need to be made
2020-06-05 09:28:15 +01:00
Kegsay
2bd12f635c
Convert serverkeys to inthttp ( #1097 )
2020-06-04 16:26:35 +01:00
Kegsay
9834ac97db
Convert everything but serverkeyapi to inthttp ( #1096 )
...
* Convert roomserver to new inthttp format
* Convert eduserver to new inthttp format
* Convert appservice to new inthttp format
2020-06-04 15:43:07 +01:00
Neil Alexander
d785ad82b9
Add key validity fetching to server key API ( #1094 )
...
* Add key validity checks
* Store fetched keys
* Don't double-cache key results
* Perform server key API operations using new context
* Revert "Perform server key API operations using new context"
This reverts commit 02172223f5 .
* Perform server key API operations using new context
2020-06-04 15:40:23 +01:00
Kegsay
f4c676ccdd
Refactor how federationsender gets created ( #1095 )
...
* Refactor how federationsender gets created
* s/httpint/inthttp/ for alphabetical niceness with internal package
2020-06-04 14:27:10 +01:00
Neil Alexander
f7025d3499
Update gomatrixserverlib
2020-06-04 13:30:08 +01:00
Kegsay
097cdf879c
s/Base64String/Base64Bytes/g ( #1093 )
...
* s/Base64String/Base64Bytes/g
Requires https://github.com/matrix-org/gomatrixserverlib/pull/203 to land first
* update gmsl
2020-06-04 11:50:57 +01:00
Kegsay
e7d1ac84c3
Add ParseFileURI and use it when dealing with file URIs ( #1088 )
...
* Add ParseFileURI and use it when dealing with file URIs
Fixes #1059
* Missing file
* Linting
2020-06-04 11:18:08 +01:00
Kegsay
d4f9a4bb97
Fix #632 and send spec-compliant transactions to the AS ( #1091 )
2020-06-04 11:17:37 +01:00
Kegsay
feb32ba365
Encode v3 event IDs correctly ( #1090 )
2020-06-04 11:14:08 +01:00
Neil Alexander
8c3f51d624
Update are-we-synapse-yet ( #1092 )
2020-06-04 11:13:40 +01:00
Neil Alexander
225b72bd42
Don't reset counters before successful outgoing federation request ( #1089 )
...
* Don't reset counters before successful outgoing federation request on incoming federation request
* Comments
2020-06-04 10:54:10 +01:00
Neil Alexander
8a6152ca70
Enable room version 6 ( #1087 )
...
* Return bad request on CS API /send if bad JSON
* Return some more M_BAD_JSON in the right places
* nolint because damnit gocyclo all I added was a type check for an error
* Update gomatrixserverlib
* Update gomatrixserverlib
* Update sytest-whitelist
* Update gomatrixserverlib
* Update sytest-whitelist
* NotJSON -> BadJSON
2020-06-04 10:53:39 +01:00
Kegsay
e21d7d4baf
Update DendriteJS.Dockerfile
2020-06-03 16:03:54 +01:00
Aiden McClelland
17c92ad10e
Adds support for adding a proxy to the HTTP Client from the config ( #1055 )
...
* adds support for defining an proxy for the http client within the config
* alphabetize imports
* goimports
* comments
2020-06-02 21:02:24 +01:00
Kegsay
dc3338d1f2
Remove ENV to avoid confusion
2020-06-02 16:35:07 +01:00
Neil Alexander
e598e80d76
Delegate responsibility for marking room versions as supported/stable to gomatrixserverlib ( #1082 )
2020-06-02 16:20:50 +01:00
Kegsay
e37720be44
Sort public rooms again by member count ( #1083 )
2020-06-02 16:18:01 +01:00
Kegsay
02b150fd13
Only store our own aliases in publicroomsapi ( #1081 )
...
Otherwise we just store the latest aliases submitted from a server,
which is not what we want.
2020-06-02 15:01:13 +01:00
Neil Alexander
794c63e757
Reset backoff on incoming federation ( #1080 )
...
* Reset backoffs in response to incoming federation requests
* Federation wakeups no more than once per minute per origin
2020-06-02 12:42:36 +01:00
Neil Alexander
484b6f694c
Use gomatrixserverlib device structs ( #1079 )
2020-06-02 11:29:47 +01:00
Kegan Dougal
353a5d6fc2
Remove p2p log lines
2020-06-02 11:03:01 +01:00