Commit Graph

419 Commits (a18828c12961ce254660e7641335428ec0655868)

Author SHA1 Message Date
Erik Johnston 2e44714214 Make failure to run appropraite upgrade scripts more helpful. 10 years ago
Mark Haines 5da65085d1 Get uploads working with new media repo 10 years ago
David Baker e377d33652 Separate out the matrix http client completely because just about all of its code it now separate from the simple case we need for standard HTTP(S) 10 years ago
Mark Haines db9ce032a4 Fix pep8 codestyle warnings 10 years ago
Mark Haines dfdda2c871 Use module loggers rather than the root logger. Exceptions caused by bad clients shouldn't cause ERROR level logging. Fix sql logging to use 'repr' rather than 'str' 10 years ago
David Baker dc60eee50e Refactor the HTTP clients a little. 10 years ago
David Baker 74c3879760 Start creating a module to do generic notifications (just prints them to stdout currently!) 10 years ago
Erik Johnston c6ea29d916 Revert accidental commit of bad file 10 years ago
Erik Johnston 95614e5220 Fix auth to correctly handle initial creation of rooms 10 years ago
Mark Haines 26fc878944 Stop before starting when restarting 10 years ago
Mark Haines e7c6d2c9d9 SYN-138: Rewrite synctl in python and include it in the python distribution 10 years ago
Mark Haines dca3ba2f77 Determine webclient path by the python module it is contained in 10 years ago
Erik Johnston af7ae048f8 Add option to not bind to HTTPS port. This is useful if running behind an ssl load balancer 10 years ago
Mark Haines 7a756e5d9d Remove unused 'context' variables to appease pyflakes 10 years ago
Mark Haines 7d709542ca Fix pep8 warnings 10 years ago
Mark Haines b29517bd01 Add a request-id to each log line 10 years ago
Mark Haines 4f11518934 Split PlainHttpClient into separate clients for talking to Identity servers and talking to Capatcha servers 10 years ago
Mark Haines e3117a2a23 Add a _matrix/key/v1 resource with the verification keys of the local server 10 years ago
Paul "LeoNerd" Evans 55397f6347 prepare_database() on db_conn, not plain name, so we can pass in the connection from outside 10 years ago
Paul "LeoNerd" Evans 2faffc52ee Make sure not to open our TCP ports until /after/ the DB is nicely prepared ready for use 10 years ago
Paul "LeoNerd" Evans 6c1f0055dc No need for a tiny run() function any more, just use reactor.run() directly 10 years ago
Paul "LeoNerd" Evans ce55a8cc4b Move database preparing code out of homserver.py into storage where it belongs 10 years ago
Erik Johnston 9dd4570b68 Generate m.room.aliases event when the HS creates a room alias 10 years ago
Matthew Hodgson 8a7c1d6a00 fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org hasn't been incorporated in time for launch. 10 years ago
Paul "LeoNerd" Evans 756e171ad0 Store SQL DDL deltas as well; attempt to upgrade the database on startup if it's too old 10 years ago
Erik Johnston bc21350298 Add option to change content repo location 10 years ago
Mark Haines bf10cf5f1a move contentrepo class to it's own file 10 years ago
Mark Haines c7a7cdf734 Add ratelimiting function to basehandler 10 years ago
Mark Haines 399e004884 Add unsecure listener port to homeserver 10 years ago
Erik Johnston bcfaaf7da6 That was a breaking db change. You need to recreate the databases. (In reality, it's enough to just run the im.sql through your db and change the schema version) 10 years ago
Mark Haines a53946a8a1 Enable SSL for s2s http client 10 years ago
Mark Haines ef6a8e4f32 Listen using SSL 10 years ago
Mark Haines 9ea1de432d Fix homeserver config parsing 10 years ago
Mark Haines d9ebe531ed Add config tree to synapse. Add support for reading config from a file 10 years ago
Mark Haines 46a2f6a816 Remove call to get_federation from homeserver 10 years ago
Paul "LeoNerd" Evans 05fa81fee4 A reliable logger.info() message /after/ the TCP port has been opened and is listening; this is essential for avoiding races in wrapper scripts e.g. integration testing 10 years ago
Paul "LeoNerd" Evans e677a3114e Use SQLite's PRAGMA user_version to check if the database file really matches the schema we have in mind 10 years ago
Paul "LeoNerd" Evans 648796ef1d Neater database setup at application startup time; only .connect() it once, not once per schema file; don't build the db_pool twice 10 years ago
Erik Johnston 1291ac93f3 Add the ability to turn on the twisted manhole telnet service. 10 years ago
Erik Johnston 0c3b4a1f63 For the content repo, don't just use homeserver.hostname as that might not include the port due to SRV. 10 years ago
Erik Johnston acf5127604 Make the content repo work with in daemon mode. Return the full url on upload. Update the webclient to use new content repo api. 10 years ago
Matthew Hodgson 1b0d427285 host a webclient by default 10 years ago
Kegan Dougal 58548ab557 Implemented GETs for the ContentRepoResource. It all actually appears to be working. 10 years ago
Kegan Dougal 35da1bf4a3 Auth content uploads. Added a mapping function from request > filename. Added exception handling for content uploads. webclient: Only prefix the client API path on doRequest, not doBaseRequest (this would've broken the identity server auth too). Added matrixService.uploadContent. May not require mFileUpload anymore. 10 years ago
Kegan Dougal a18b1a649c Added /matrix/content path, HS resource_for_content_repo attribute and FileUploadResource. Added stub methods. 10 years ago
Erik Johnston cbd5d55222 Change relative db paths to absolute paths in case we daemonize. 10 years ago
Erik Johnston e4061383b8 Change relative db paths to absolute paths in case we daemonize. 10 years ago
Paul "LeoNerd" Evans e37de2aef3 chmod +x homeserver.py 10 years ago
Kegan Dougal d253a35539 Added web client prefix 10 years ago
Kegan Dougal c75add6ec8 Added a urls module for keeping client and federation prefixes. 10 years ago