Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge branch 'develop' of github.com:matrix-org/synapse into anoa/upd…
Browse files Browse the repository at this point in the history
…ate_remote_aliases_on_room_upgrade

* 'develop' of github.com:matrix-org/synapse: (166 commits)
  Clean up some LoggingContext stuff (#7120)
  Fix CAS redirect url (#6634)
  Newsfile
  Fix starting workers when federation sending not split out.
  Use the proper error code when a canonical alias that does not exist is used. (#7109)
  Update pre-built package name for FreeBSD (#7107). (#7107)
  Convert `*StreamRow` classes to inner classes (#7116)
  matrix.org was fine
  Update CHANGES.md
  changelog typos
  1.12.0 changelog
  1.12.0
  Fix processing of `groups` stream, and use symbolic names for streams (#7117)
  Set Referrer-Policy to no-referrer for media (#7009)
  Clean-up some auth/login REST code (#7115)
  Improve database configuration docs (#6988)
  Remove concept of a non-limited stream. (#7011)
  Convert some of the media REST code to async/await (#7110)
  Fix a bug in the federation API which could cause occasional "Failed to get PDU" errors (#7089).
  more changelog
  ...
  • Loading branch information
anoadragon453 committed Mar 25, 2020
2 parents 5fd9b24 + b1cfaf0 commit bd52c52
Show file tree
Hide file tree
Showing 275 changed files with 6,187 additions and 4,944 deletions.
7 changes: 1 addition & 6 deletions .buildkite/scripts/test_old_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@
set -ex

apt-get update
apt-get install -y python3.5 python3.5-dev python3-pip libxml2-dev libxslt-dev zlib1g-dev

# workaround for https://github.com/jaraco/zipp/issues/40
python3.5 -m pip install 'setuptools>=34.4.0'

python3.5 -m pip install tox
apt-get install -y python3.5 python3.5-dev python3-pip libxml2-dev libxslt-dev zlib1g-dev tox

export LANG="C.UTF-8"

Expand Down
233 changes: 233 additions & 0 deletions CHANGES.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ python 3.6 and to install each tool:

```
# Install the dependencies
pip install -U black flake8 isort
pip install -U black flake8 flake8-comprehensions isort
# Run the linter script
./scripts-dev/lint.sh
Expand Down
26 changes: 17 additions & 9 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,21 @@ sudo pacman -S base-devel python python-pip \

#### CentOS/Fedora

Installing prerequisites on CentOS 7 or Fedora 25:
Installing prerequisites on CentOS 8 or Fedora>26:

```
sudo dnf install libtiff-devel libjpeg-devel libzip-devel freetype-devel \
libwebp-devel tk-devel redhat-rpm-config \
python3-virtualenv libffi-devel openssl-devel
sudo dnf groupinstall "Development Tools"
```

Installing prerequisites on CentOS 7 or Fedora<=25:

```
sudo yum install libtiff-devel libjpeg-devel libzip-devel freetype-devel \
lcms2-devel libwebp-devel tcl-devel tk-devel redhat-rpm-config \
python-virtualenv libffi-devel openssl-devel
python3-virtualenv libffi-devel openssl-devel
sudo yum groupinstall "Development Tools"
```

Expand Down Expand Up @@ -374,7 +383,7 @@ Synapse can be found in the void repositories as 'synapse':
Synapse can be installed via FreeBSD Ports or Packages contributed by Brendan Molloy from:

- Ports: `cd /usr/ports/net-im/py-matrix-synapse && make install clean`
- Packages: `pkg install py27-matrix-synapse`
- Packages: `pkg install py37-matrix-synapse`


### NixOS
Expand Down Expand Up @@ -418,13 +427,12 @@ so, you will need to edit `homeserver.yaml`, as follows:
for having Synapse automatically provision and renew federation
certificates through ACME can be found at [ACME.md](docs/ACME.md).
Note that, as pointed out in that document, this feature will not
work with installs set up after November 2020.
work with installs set up after November 2019.

If you are using your
own certificate, be sure to use a `.pem` file that includes the full
certificate chain including any intermediate certificates (for
instance, if using certbot, use `fullchain.pem` as your certificate,
not `cert.pem`).
If you are using your own certificate, be sure to use a `.pem` file that
includes the full certificate chain including any intermediate certificates
(for instance, if using certbot, use `fullchain.pem` as your certificate, not
`cert.pem`).

For a more detailed guide to configuring your server for federation, see
[federate.md](docs/federate.md)
Expand Down
1 change: 1 addition & 0 deletions changelog.d/6634.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix single-sign on with CAS systems: pass the same service URL when requesting the CAS ticket and when calling the `proxyValidate` URL. Contributed by @Naugrimm.
1 change: 0 additions & 1 deletion changelog.d/6769.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6781.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6821.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6823.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6825.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6827.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6833.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6834.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6836.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6837.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6840.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6844.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6846.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6847.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6849.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6854.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6855.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6856.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6857.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6858.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6862.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6864.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6866.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6869.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6871.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6872.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6873.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6877.removal

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6882.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6883.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6887.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6888.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6891.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6901.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6904.removal

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6905.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6906.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6907.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6909.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6915.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6918.docker

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6919.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6920.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6921.docker

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6937.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6938.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/6939.feature

This file was deleted.

1 change: 1 addition & 0 deletions changelog.d/6988.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve the documentation for database configuration.
1 change: 1 addition & 0 deletions changelog.d/7009.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Set `Referrer-Policy` header to `no-referrer` on media downloads.
1 change: 1 addition & 0 deletions changelog.d/7010.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Change device list streams to have one row per ID.
1 change: 1 addition & 0 deletions changelog.d/7011.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove concept of a non-limited stream.
1 change: 1 addition & 0 deletions changelog.d/7089.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a bug in the federation API which could cause occasional "Failed to get PDU" errors.
1 change: 1 addition & 0 deletions changelog.d/7107.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update pre-built package name for FreeBSD.
1 change: 1 addition & 0 deletions changelog.d/7109.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Return the proper error (M_BAD_ALIAS) when a non-existant canonical alias is provided.
1 change: 1 addition & 0 deletions changelog.d/7110.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Convert some of synapse.rest.media to async/await.
1 change: 1 addition & 0 deletions changelog.d/7115.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
De-duplicate / remove unused REST code for login and auth.
1 change: 1 addition & 0 deletions changelog.d/7116.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Convert `*StreamRow` classes to inner classes.
1 change: 1 addition & 0 deletions changelog.d/7117.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a bug which meant that groups updates were not correctly replicated between workers.
1 change: 1 addition & 0 deletions changelog.d/7120.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clean up some LoggingContext code.
1 change: 1 addition & 0 deletions changelog.d/7133.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix starting workers when federation sending not split out.
5 changes: 2 additions & 3 deletions contrib/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ services:
restart: unless-stopped
# See the readme for a full documentation of the environment settings
environment:
- SYNAPSE_CONFIG_PATH=/etc/homeserver.yaml
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
volumes:
# You may either store all the files in a local folder
- ./matrix-config/homeserver.yaml:/etc/homeserver.yaml
- ./files:/data
# .. or you may split this between different storage points
# - ./files:/data
Expand Down Expand Up @@ -58,7 +57,7 @@ services:
- POSTGRES_PASSWORD=changeme
# ensure the database gets created correctly
# https://github.com/matrix-org/synapse/blob/master/docs/postgres.md#set-up-database
- POSTGRES_INITDB_ARGS="--encoding=UTF-8 --lc-collate=C --lc-ctype=C"
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
volumes:
# You may store the database tables in a local folder..
- ./schemas:/var/lib/postgresql/data
Expand Down
2 changes: 1 addition & 1 deletion contrib/grafana/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Using the Synapse Grafana dashboard

0. Set up Prometheus and Grafana. Out of scope for this readme. Useful documentation about using Grafana with Prometheus: http://docs.grafana.org/features/datasources/prometheus/
1. Have your Prometheus scrape your Synapse. https://github.com/matrix-org/synapse/blob/master/docs/metrics-howto.rst
1. Have your Prometheus scrape your Synapse. https://github.com/matrix-org/synapse/blob/master/docs/metrics-howto.md
2. Import dashboard into Grafana. Download `synapse.json`. Import it to Grafana and select the correct Prometheus datasource. http://docs.grafana.org/reference/export_import/
3. Set up additional recording rules
Loading

0 comments on commit bd52c52

Please sign in to comment.