summary refs log tree commit diff
path: root/contrib (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Improve Docker docs for use with Postgres (#11640)Callum Macdonald2022-01-051-0/+1
|
* Fix Shellcheck SC2089 and SC2090: Quotes in varsDan Callahan2021-10-221-2/+4
| | | | | | | | | | | | | | | | | | SC2089: Quotes/backslashes will be treated literally. Use an array. https://github.com/koalaman/shellcheck/wiki/SC2089 SC2090: Quotes/backslashes in this variable will not be respected. https://github.com/koalaman/shellcheck/wiki/SC2090 Putting literal JSON in a variable mistakenly triggers these warnings. Instead of adding ignore directives, this can be avoided by inlining the JSON data into the curl invocation. Since the variable is only used in this one location, inlining is fine. Signed-off-by: Dan Callahan <danc@element.io>
* Break down cache expiry reasons in grafana (#10880)David Robertson2021-09-231-2/+2
| | | A follow-up to #10829
* Update the Synapse Grafana dashboard (#10570)Brendan Abolivier2021-08-161-66/+484
|
* Fix some links in `docs` and `contrib` (#10370)Dirk Klimpel2021-07-136-10/+13
|
* Fix broken links in INSTALL.md (#10331)Dirk Klimpel2021-07-081-1/+2
| | | Signed-off-by: Dirk Klimpel dirk@klimpel.org
* update black to 21.6b0 (#10197)Marcus2021-06-171-4/+4
| | | | | Reformat all files with the new version. Signed-off-by: Marcus Hoffmann <bubu@bubu1.eu>
* Update the contrib grafana dashboard (#10001)Erik Johnston2021-05-191-644/+3557
|
* Hardened systemd unit files (#9803)Savyasachee Jha2021-05-191-0/+71
| | | Signed-off-by: Savyasachee Jha savya.jha@hawkradius.com
* Revert "Experimental Federation Speedup (#9702)"Andrew Morgan2021-04-281-23/+19
| | | | This reverts commit 05e8c70c059f8ebb066e029bc3aa3e0cefef1019.
* Experimental Federation Speedup (#9702)Jonathan de Jong2021-04-141-19/+23
| | | | | This basically speeds up federation by "squeezing" each individual dual database call (to destinations and destination_rooms), which previously happened per every event, into one call for an entire batch (100 max). Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-142-2/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Bugbear: Add Mutable Parameter fixes (#9682)Jonathan de Jong2021-04-082-6/+23
| | | | | | | Part of #9366 Adds in fixes for B006 and B008, both relating to mutable parameter lint errors. Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>
* Use interpreter from $PATH instead of absolute paths in various scripts ↵Quentin Gliech2021-03-252-2/+2
| | | | | | | | | using /usr/bin/env (#9689) On NixOS, `bash` isn't under `/bin/bash` but rather in some directory in `$PATH`. Locally, I've been patching those scripts to make them work. `/usr/bin/env` seems to be the only [portable way](https://unix.stackexchange.com/questions/29608/why-is-it-better-to-use-usr-bin-env-name-instead-of-path-to-name-as-my) to use binaries from the PATH as interpreters. Signed-off-by: Quentin Gliech <quentingliech@gmail.com>
* Update black, and run auto formatting over the codebase (#9381)Eric Eastwood2021-02-165-51/+32
| | | | | | | - Update black version to the latest - Run black auto formatting over the codebase - Run autoformatting according to [`docs/code_style.md `](https://github.com/matrix-org/synapse/blob/80d6dc9783aa80886a133756028984dbf8920168/docs/code_style.md) - Update `code_style.md` docs around installing black to use the correct version
* Add missing prometheus rules for persisted events (#8802)Johanna Dorothea Reichmann2020-12-021-0/+18
| | | | | | | The official dashboard uses data from these rules, but they were never added to the synapse-v2.rules. They are mentioned in this issue: https://github.com/matrix-org/synapse/issues/7917#issuecomment-661330409, but never got added to the rules. Adding them results in all graphs in the "Event persist rate" section to function as intended. Signed-off-by: Johanna Dorothea Reichmann <transcaffeine@finallycoffee.eu>
* Update example prometheus console (#8824)Dirk Klimpel2020-11-261-51/+50
| | | | Signed-off-by: Dirk Klimpel dirk@klimpel.org
* Improve documentation how to configure prometheus for workers (#8822)Dirk Klimpel2020-11-261-3/+7
|
* Cross-link documentation to the prometheus recording rules. (#8667)Michael Kaye2020-10-271-1/+1
|
* Remove obsolete __future__ imports (#8337)Jonathan de Jong2020-09-176-17/+1
|
* Stop sub-classing object (#8249)Patrick Cloke2020-09-043-6/+6
|
* Convert federation client to async/await. (#7975)Patrick Cloke2020-07-301-7/+9
|
* Lint the contrib/ directory in CI and linting scripts, add synctl to linting ↵Andrew Morgan2020-07-208-80/+68
| | | | | | | script (#7914) Run `isort`, `flake8` and `black` over the `contrib/` directory and `synctl` script. The latter was already being done in CI, but now the linting script does it too. Fixes https://github.com/matrix-org/synapse/issues/7910
* Fix deprecation warning due to invalid escape sequences (#7895)Karthikeyan Singaravelan2020-07-201-4/+4
| | | | | | | * Fix deprecation warnings due to invalid escape sequences. * Add changelog Signed-off-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
* Update grafana dashboardRichard van der Hoff2020-07-131-85/+214
|
* Merge branch 'master' into developPatrick Cloke2020-07-021-1/+1
|\
| * Update postgres in the Docker compose example to 12-alpine. (#7696)lub2020-06-171-1/+1
| |
* | Replace all remaining six usage with native Python 3 equivalents (#7704)Dagfinn Ilmari Mannsåker2020-06-161-3/+1
|/
* update grafana dashboardRichard van der Hoff2020-06-021-88/+525
|
* Add entry to set dependency against psql service (#7591)David Rio Deiros2020-05-281-0/+3
|
* Make systemd-with-workers doc official (#7234)Richard van der Hoff2020-04-085-208/+2
| | | | Simplify and update this documentation, and make it part of the core dist.
* update grafana dashboardRichard van der Hoff2020-03-191-32/+213
|
* rst->mdMatthew Hodgson2020-03-011-1/+1
|
* Fix mounting of homeserver.yaml when it does not exist on host (#6913)Sandro2020-02-291-2/+1
| | | Signed-off-by: Sandro Jäckel <sandro.jaeckel@gmail.com>
* contrib/docker: remove quotes for POSTGRES_INITDB_ARGS (#6984)Fridtjof Mund2020-02-251-1/+1
| | | | | I made a mistake in https://github.com/matrix-org/synapse/pull/6921 - the quotes break the postgres container's startup script (or docker-compose), which makes initdb fail: https://github.com/matrix-org/synapse/pull/6921#issuecomment-590657154 Signed-off-by: Fridtjof Mund <fridtjof@das-labor.org>
* contrib/docker: Ensure correct encoding and locale settings on DB creation ↵Fridtjof Mund2020-02-141-0/+3
| | | | | | (#6921) Signed-off-by: Fridtjof Mund <fridtjof@das-labor.org>
* contrib/docker-compose: fixing mount that overrides containers' /etc (#6656)Fabian Meyer2020-01-081-1/+1
| | | | The mount in the form of ./matrix-config:/etc overwrites the contents of the container /etc folder. Since all valid ca certificates are stored in /etc, the synapse.push.httppusher, for example, cannot validate the certificate from matrix.org.
* Systemd documentation (#6490)Clifford Garwood II2019-12-091-1/+1
|
* Modify systemd unit file reference to align with installation instruction ↵Clifford Garwood II2019-12-052-2/+22
| | | | | (#6369) Signed-off-by: Clifford Garwood II cliff@cigii.com
* Update black to 19.10b0 (#6304)Amber Brown2019-11-011-2/+2
| | | * update version of black and also fix the mypy config being overridden
* Cleanup extra quotes from IDEs (#6236)Andrew Morgan2019-10-232-3/+3
|
* Update docker-compose.yml for a static config file, and update traefik ↵przemas752019-10-182-29/+27
| | | | examples (#6142)
* Allow Synapse to send registration emails + choose Synapse or an external ↵Andrew Morgan2019-09-061-0/+2
| | | | | | | | | | | | | | | | server to handle 3pid validation (#5987) This is a combination of a few different PRs, finally all being merged into `develop`: * #5875 * #5876 * #5868 (This one added the `/versions` flag but the flag itself was actually [backed out](https://github.com/matrix-org/synapse/commit/891afb57cbdf9867f2848341b29c75d6f35eef5a#diff-e591d42d30690ffb79f63bb726200891) in #5969. What's left is just giving /versions access to the config file, which could be useful in the future) * #5835 * #5969 * #5940 Clients should not actually use the new registration functionality until https://github.com/matrix-org/synapse/pull/5972 is merged. UPGRADE.rst, changelog entries and config file changes should all be reviewed closely before this PR is merged.
* Switch to using v2 Identity Service APIs other than lookup (MSC 2140) (#5892)Andrew Morgan2019-09-051-0/+5
|
* Fix curl command typo in purge_remote_media.shThomas Citharel2019-08-091-1/+1
| | | | | | Was verbose option instead of -X, command didn't work Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Also update systemd-with-workers contrib examplesErik Johnston2019-07-232-2/+4
|
* Update example systemd service fileErik Johnston2019-07-221-1/+3
|
* Move logging utilities out of the side drawer of util/ and into logging/ (#5606)Amber Brown2019-07-043-6/+6
|
* Deprecate the env var way of running the docker image (#5566)Richard van der Hoff2019-06-271-0/+4
| | | | | This is mostly a documentation change, but also adds a default value for SYNAPSE_CONFIG_PATH, so that running from the generated config is the default, and will Just Work provided your config is in the right place.
* Update purge_api READMEjon r2019-06-271-2/+2
| | | This points the reverse links at the intended location.
* Add extremities graphs to grafana dashboardRichard van der Hoff2019-06-251-23/+832
|
* format json for grafana dashboardRichard van der Hoff2019-06-251-1/+6005
|
* Run Black. (#5482)Amber Brown2019-06-209-411/+479
|
* Fix seven contrib files with Python syntax errors (#5446)cclauss2019-06-186-119/+130
| | | | | | * Fix seven contrib files with Python syntax errors Signed-off-by: cclauss <cclauss@me.com>
* Set syslog identifiers in systemd units (#5023)Christoph Müller2019-05-103-1/+3
|
* update grafana dashboardRichard van der Hoff2019-04-131-5211/+1
|
* Add systemd setup that supports workers (#4662)Luca Corbatto2019-03-155-0/+204
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This setup is a way to manage workers with systemd. It does however not require workers. You can use this setup without workers. You just have to make sure that the homeserver is forking and writes its PID file to the location the service is looking in. The currently distributed setup in the debian package does not work in conjunction with workers. * Adds changelog * Lets systemd handle the forking Sets all services to `type=simple` and disables daemonizing on the synapse side. * Formats readme to 80 columns per line * Allows for full restart of all workers * Changes README to reflect the new setup * Adds dot to end of changelog file * Removes surplus word Co-Authored-By: targodan <targodan@users.noreply.github.com> * Adds missing word Co-Authored-By: targodan <targodan@users.noreply.github.com> * Fixes linebreak Co-Authored-By: targodan <targodan@users.noreply.github.com> * Fixes unit type
* Update example_log_config.yaml (#4820)Richard van der Hoff2019-03-071-1/+2
|
* cleanups for contrib/prometheus/READMERichard van der Hoff2019-01-301-0/+7
|
* Update docker-compose.yml (#4282)jribal2019-01-021-1/+1
| | | | | | Hi, the original docker-compose file did not work by default. You get federation port working but no client port. My proposal is to let federation port work as it is by default (8448) and let traefik handle client http/https traffic.
* Update the example systemd config to use a virtualenv (#4273)Richard van der Hoff2018-12-072-22/+31
| | | | | If you're installing as a system package, the system package should have set up the systemd config, so it's more useful to give an example of running in a virtualenv here.
* add purge_history.sh and purge_remote_media.sh scripts to contrib/purge_api/rubo772018-11-073-0/+211
| | | | Signed-off-by: Ruben Barkow <github@r.z11.de>
* Merge pull request #3778 from z3ntu/patch-1Richard van der Hoff2018-11-011-2/+4
|\ | | | | Fix build of Docker image with docker-compose
| * Fix build of Docker image with docker-composeLuca Weiss2018-09-111-2/+4
| | | | | | | | ... and fix a typo
* | Fix typo in docker-compose.ymlJonas Schürmann2018-10-311-1/+1
| | | | | | | | Signed-off-by: Jonas Schürmann <jonasschuermann@aol.de>
* | Update grafana dashboardRichard van der Hoff2018-09-251-175/+417
|/
* fix event lag graphRichard van der Hoff2018-08-071-8/+16
|
* Update README.mdMichael Kaye2018-08-031-1/+1
| | | Link to docker/README.md
* Refactor docker locations and README.Michael Kaye2018-08-024-422/+2
| | | | This addresses #3224
* Merge pull request #3543 from bebehei/dockerJan Christian Grünhage2018-08-012-7/+2
|\ | | | | Improvements for Docker usage
| * [Docker] Build docker image via composeBenedikt Heine2018-07-172-7/+2
| | | | | | | | | | | | | | It's much easier to build the image via docker-compose instead of an error-prone low-level docker call. Signed-off-by: Benedikt Heine <bebe@bebehei.de>
* | Add some documentation for using the dashboardPaul Tötterman2018-07-311-0/+6
| |
* | synapse grafana dashboardRichard van der Hoff2018-07-311-0/+4961
|/
* light grammar changesNeil Johnson2018-05-171-4/+4
|
* Note that secrets need to be retained.Michael Kaye2018-05-171-2/+7
|
* Document macaroon env var correctlyMichael Kaye2018-05-171-2/+2
|
* Merge remote-tracking branch 'upstream/master' into feat-dockerfilekaiyou2018-05-026-20/+36
|\
| * Document contrib directoryErik Johnston2018-04-202-0/+14
| |
| * Merge pull request #3075 from NotAFile/six-type-checksRichard van der Hoff2018-04-091-1/+3
| |\ | | | | | | Replace some type checks with six type checks
| | * Replace some type checks with six type checksAdrian Tschira2018-04-071-1/+3
| | | | | | | | | | | | Signed-off-by: Adrian Tschira <nota@notafile.com>
| * | make prometheus config compliant to v0.28Krombel2018-04-053-19/+19
| |/
* | Make the logging level configurablekaiyou2018-05-012-3/+4
| |
* | Fix the documentation about 'POSTGRES_DB'kaiyou2018-05-011-1/+1
| |
* | Disable logging to file and rely on the console when using Dockerkaiyou2018-02-101-8/+1
| |
* | Explicitely provide the postgres password to synapse in the Compose examplekaiyou2018-02-101-0/+1
| |
* | Remove an accidentally committed test configurationkaiyou2018-02-101-1/+1
| |
* | Generate macaroon and registration secrets, then store the results to the ↵kaiyou2018-02-102-6/+15
| | | | | | | | data dir
* | Fix the path to the log config filekaiyou2018-02-092-2/+2
| |
* | Make SYNAPSE_MACAROON_SECRET_KEY a mandatory optionkaiyou2018-02-092-3/+4
| |
* | Specify the Docker registry for the postgres imagekaiyou2018-02-081-1/+1
| |
* | Specify the Docker registry in the build tagkaiyou2018-02-081-1/+1
| |
* | Make it clear that the image has two modes of operationkaiyou2018-02-081-5/+24
| |
* | Enable email server configuration from environment variableskaiyou2018-02-082-16/+24
| |
* | Honor the SYNAPSE_REPORT_STATS parameter in the Docker imagekaiyou2018-02-081-0/+5
| |
* | Disable the Web client in the Docker imagekaiyou2018-02-082-4/+3
| |
* | Use 'synapse' as a default postgres user in Docker exampleskaiyou2018-02-082-3/+3
| |
* | Refactor the start script to better handle mandatory parameterskaiyou2018-02-083-24/+35
| |
* | Rename the permissions variable to avoid confusionkaiyou2018-02-081-3/+3
| |
* | Add some documentation about high performance storagekaiyou2018-02-081-2/+7
| |
* | Make it clear that two modes are avaiable in the documentation, improve the ↵kaiyou2018-02-082-9/+20
| | | | | | | | compose file
* | Support loading application service files from /data/appservices/kaiyou2018-02-053-2/+18
| |
* | Only generate configuration files when necessarykaiyou2018-02-051-5/+7
| |
* | Point to the 'latest' tag in the Docker documentationkaiyou2018-02-052-2/+2
| |
* | Fix a typo in the Docker READMEkaiyou2018-02-051-1/+1
| |
* | Document the cache factor environment variable for Dockerkaiyou2018-02-051-0/+1
| |
* | Add dynamic TURN configuration in the Docker imagekaiyou2018-02-052-2/+14
| |
* | Add dynamic recaptcha configuration in the Docker imagekaiyou2018-02-052-0/+11
| |
* | Run the server as an unprivileged userkaiyou2018-02-041-4/+7
| |
* | Fix multiple typoskaiyou2018-02-042-10/+16
| |
* | Update sumperdump Docker readme to match this image propertieskaiyou2018-02-041-38/+64
| |
* | Remove etc/service files from rob's branchkaiyou2018-02-043-131/+0
| |
* | Merge remote-tracking branch 'origin/rob/docker' into feat-dockerfilekaiyou2018-02-044-0/+201
|\ \
* | | Reuse environment variables of the postgres containerkaiyou2018-02-042-9/+14
| | |
* | | Provide an example docker compose filekaiyou2018-02-041-0/+32
| | |
* | | Support an external postgresql config in the Docker imagekaiyou2018-02-041-2/+11
| | |
* | | Generate shared secrets if not defined in the environmentkaiyou2018-02-041-4/+11
| | |
* | | Generate any missing keys before starting synapsekaiyou2018-02-041-12/+13
| | |
* | | Allow for a wheel cache and include missing files in the buildkaiyou2018-02-041-0/+1
| | |
* | | Add template config files for the Docker imagekaiyou2018-02-032-0/+217
| | |
* | | Initial commit including a Dockerfile for synapsekaiyou2018-02-031-0/+29
| |/ |/|
* | Make clear that the config has changed since prometheus v2Krombel2017-11-143-2/+35
| | | | | | | | | | This restores the config that is usable for prometheus pre v2.0.0 The new config only works for Prometheus v2+
* | update prometheus-config to new formatKrombel2017-11-072-23/+67
| |
* | Start traditionally, stop synctlrnbdsh2017-09-241-1/+2
| | | | | | | | Starting with synctl lead to "no config file found" Stopping also leads to some (code=exited, status=1/FAILURE), but at least now we can stop the service.
* | Remove non-existing files, add stop, use synctlrnbdsh2017-09-241-2/+2
|/ | | | | | | Non-existing files, when running the suggested from https://github.com/matrix-org/synapse#configuring-synapse /etc/synapse/log_config.yaml so the --log-config leads to an error /etc/sysconfig/synapse The environment-file or even the /etc/sysconfig does not exist in arch linux Also instead of calling python2 we use synctl, as this seems to be the proper way to start it, and it gives us a more useful error in the systemctl status. And we now allow stop (and therefore restart).
* Add prometheus configRichard van der Hoff2017-08-163-0/+436
| | | | ... from https://github.com/matrix-org/synapse-prometheus-config.
* Fix some lies, and other clarifications, in docstringsRichard van der Hoff2017-04-211-10/+6
| | | | | The documentation on get_json has been wrong ever since the very first commit to synapse...
* Bring example log config into line with defaultRichard van der Hoff2017-03-131-2/+4
|
* merge in right archlinux package, thanks to @saram-kon from ↵Matthew Hodgson2017-02-281-1/+1
| | | | https://github.com/matrix-org/synapse/pull/1956
* Update example_log_config.yamlRichard van der Hoff2017-02-171-1/+1
| | | add trailing NL
* Add an example log_config fileRichard van der Hoff2017-02-171-0/+48
|
* Use signedjson.sign instead of syutil.crypto.jsonsignAndrew Shadura2017-02-131-1/+1
| | | | | | | Functions from syutil.crypto.jsonsign are now available in signedjson, so use that instead of depending on syutil. Signed-off-by: Andrew Shadura <andrew@shadura.me>
* Add environment file to systemd unit configuration.Oleg Girko2016-04-141-0/+1
| | | | | | | | | Now there is at least one environment variable that controls synapse server's behaviour: SYNAPSE_CACHE_FACTOR. So, it makes sense to make systemd unit file to use environment configuration file that can set this variable's value. Signed-off-by: Oleg Girko <ol@infoserver.lv>
* Add another graph contribErik Johnston2016-01-211-0/+151
|
* copyrightsMatthew Hodgson2016-01-076-6/+6
|
* hacky support for video for FS CC DDMatthew Hodgson2015-08-061-3/+0
|
* hacky support for video for FS CC DDMatthew Hodgson2015-08-061-15/+25
|
* contrib/systemd: log_config.yaml: do not disable existing loggersIvan Shapovalov2015-05-311-0/+2
| | | | | | | | | It turned out that merely configuring the root logger is not enough for "catch-all" semantics. The logging subsystem also needs to be told not to disable existing loggers (so that their messages will get propagated to handlers up the logging hierarchy, not just silently discarded). Signed-off-by: Ivan Shapovalov <intelfx100@gmail.com>
* minimal docMatthew Hodgson2015-04-291-0/+4
|
* contrib/systemd: add a sample systemd unit file and a logger configurationIvan Shapovalov2015-04-292-0/+35
| | | | | | | The added logger configuration (--log-config or log_config:) uses systemd's python bindings to pass messages directly to the journal. Signed-off-by: Ivan Shapovalov <intelfx100@gmail.com>
* Add kick users scriptKegan Dougal2015-04-171-0/+93
|
* potential contributing guide & author list for synapseMatthew Hodgson2015-04-031-0/+3
|
* uncommited WIP from MWCMatthew Hodgson2015-03-142-12/+15
|
* WIP vertobridge ASMatthew Hodgson2015-03-041-0/+489
|
* Fix contrib/graph/graph2.py to handle FrozenDictErik Johnston2015-02-161-1/+2
|
* Merge branch 'develop' into pushersDavid Baker2015-01-226-0/+1833
|\ | | | | | | | | Conflicts: synapse/rest/__init__.py
| * Move experiments, graph and cmdclient into contribMark Haines2015-01-226-0/+1833
| |
* | Merge branch 'master' into pushersDavid Baker2014-12-181-0/+0
|\|
| * Remove editor junkPaul "LeoNerd" Evans2014-12-021-0/+0
| |
| * Add non-working jitsi meet bridgeDavid Baker2014-12-0210-0/+5488
| |
| * fix IO::Async abuse - thanks leoMatthew Hodgson2014-12-021-9/+11
| |
| * ignore rogue matrix call events; support verto.media RPC as a horrible hack; ↵Matthew Hodgson2014-12-023-21/+33
| | | | | | | | fix NA::Matrix dep
| * clean up a vertobot a bitMatthew Hodgson2014-12-022-5/+0
| |
| * a simple matrix->verto bot, distantly related to the irc bridgeMatthew Hodgson2014-12-025-0/+546
|
* convert to spaces before I start a holy warDavid Baker2014-12-021-205/+205
|
* Add non-working jitsi meet bridgeDavid Baker2014-12-0210-0/+5488
|
* fix IO::Async abuse - thanks leoMatthew Hodgson2014-11-281-9/+11
|
* ignore rogue matrix call events; support verto.media RPC as a horrible hack; ↵Matthew Hodgson2014-11-283-21/+33
| | | | fix NA::Matrix dep
* clean up a vertobot a bitMatthew Hodgson2014-11-282-5/+0
|
* a simple matrix->verto bot, distantly related to the irc bridgeMatthew Hodgson2014-11-285-0/+546