Просмотр исходного кода

Merge branch 'master' into postgres-per-default

pull/740/head
Slavi Pantaleev 5 лет назад
Родитель
Сommit
c66c084027
9 измененных файлов: 19 добавлений и 15 удалений
  1. +3
    -3
      docs/README.md
  2. +2
    -0
      docs/configuring-playbook-ssl-certificates.md
  3. +2
    -2
      docs/importing-postgres.md
  4. +2
    -2
      docs/importing-synapse-media-store.md
  5. +3
    -3
      docs/importing-synapse-sqlite.md
  6. +2
    -2
      docs/installing.md
  7. +0
    -0
      roles/matrix-postgres/tasks/import_synapse_sqlite_db.yml
  8. +4
    -2
      roles/matrix-postgres/tasks/main.yml
  9. +1
    -1
      roles/matrix-synapse/tasks/main.yml

+ 3
- 3
docs/README.md Просмотреть файл

@@ -10,13 +10,13 @@

- [Installing](installing.md)

- **Importing data from another Synapse server installation**
- **Importing data from another server installation**

- [Importing an existing SQLite database (from another installation)](importing-sqlite.md) (optional)
- [Importing an existing SQLite database (from another Synapse installation)](importing-synapse-sqlite.md) (optional)

- [Importing an existing Postgres database (from another installation)](importing-postgres.md) (optional)

- [Importing `media_store` data files from an existing installation](importing-media-store.md) (optional)
- [Importing `media_store` data files from an existing Synapse installation](importing-synapse-media-store.md) (optional)

- [Registering users](registering-users.md)



+ 2
- 0
docs/configuring-playbook-ssl-certificates.md Просмотреть файл

@@ -67,6 +67,7 @@ By default, it obtains certificates for:
- possibly for `element.<your-domain>`, unless you have disabled the [Element client component](configuring-playbook-client-element.md) using `matrix_client_element_enabled: false`
- possibly for `riot.<your-domain>`, if you have explicitly enabled Riot to Element redirection (for background compatibility) using `matrix_nginx_proxy_proxy_riot_compat_redirect_enabled: true`
- possibly for `dimension.<your-domain>`, if you have explicitly [set up Dimension](configuring-playbook-dimension.md).
- possibly for `jitsi.<your-domain>`, if you have explicitly [set up Jitsi](configuring-playbook-jitsi.md).
- possibly for your base domain (`<your-domain>`), if you have explicitly configured [Serving the base domain](configuring-playbook-base-domain-serving.md)

If you are hosting other domains on the Matrix machine, you can make the playbook obtain and renew certificates for those other domains too.
@@ -80,6 +81,7 @@ matrix_ssl_domains_to_obtain_certificates_for:
- '{{ matrix_server_fqn_matrix }}'
- '{{ matrix_server_fqn_element }}'
- '{{ matrix_server_fqn_dimension }}'
- '{{ matrix_server_fqn_jitsi }}'
- '{{ matrix_domain }}'
```



+ 2
- 2
docs/importing-postgres.md Просмотреть файл

@@ -1,7 +1,7 @@
# Importing an existing Postgres database from another installation (optional)

Run this if you'd like to import your database from a previous installation of Synapse.
(don't forget to import your `media_store` files as well - see [the importing-media-store guide](importing-media-store.md)).
Run this if you'd like to import your database from a previous installation.
(don't forget to import your Synapse `media_store` files as well - see [the importing-synape-media-store guide](importing-synapse-media-store.md)).


## Prerequisites


docs/importing-media-store.md → docs/importing-synapse-media-store.md Просмотреть файл

@@ -1,4 +1,4 @@
# Importing `media_store` data files from an existing installation (optional)
# Importing `media_store` data files from an existing Synapse installation (optional)

Run this if you'd like to import your `media_store` files from a previous installation of Synapse.

@@ -17,6 +17,6 @@ As an alternative, you can perform a manual restore using the [AWS CLI tool](htt

Run this command (make sure to replace `<server-path-to-media_store>` with a path on your server):

ansible-playbook -i inventory/hosts setup.yml --extra-vars='server_path_media_store=<server-path-to-media_store>' --tags=import-media-store
ansible-playbook -i inventory/hosts setup.yml --extra-vars='server_path_media_store=<server-path-to-media_store>' --tags=import-synapse-media-store

**Note**: `<server-path-to-media_store>` must be a file path to a `media_store` directory on the server (not on your local machine!).

docs/importing-sqlite.md → docs/importing-synapse-sqlite.md Просмотреть файл

@@ -1,7 +1,7 @@
# Importing an existing SQLite database from another installation (optional)
# Importing an existing SQLite database from another Synapse installation (optional)

Run this if you'd like to import your database from a previous default installation of Synapse.
(don't forget to import your `media_store` files as well - see [the importing-media-store guide](importing-media-store.md)).
(don't forget to import your `media_store` files as well - see [the importing-synapse-media-store guide](importing-synapse-media-store.md)).

While this playbook always sets up PostgreSQL, by default a Synapse installation would run
using an SQLite database.
@@ -18,7 +18,7 @@ Before doing the actual import, **you need to upload your SQLite database file t

Run this command (make sure to replace `<server-path-to-homeserver.db>` with a file path on your server):

ansible-playbook -i inventory/hosts setup.yml --extra-vars='server_path_homeserver_db=<server-path-to-homeserver.db>' --tags=import-sqlite-db
ansible-playbook -i inventory/hosts setup.yml --extra-vars='server_path_homeserver_db=<server-path-to-homeserver.db>' --tags=import-synapse-sqlite-db

**Notes**:


+ 2
- 2
docs/installing.md Просмотреть файл

@@ -21,11 +21,11 @@ Feel free to **re-run this setup command any time** you think something is off w

After installing, but before starting the services, you may want to do additional things like:

- [Importing an existing SQLite database (from another installation)](importing-sqlite.md) (optional)
- [Importing an existing SQLite database (from another Synapse installation)](importing-synapse-sqlite.md) (optional)

- [Importing an existing Postgres database (from another installation)](importing-postgres.md) (optional)

- [Importing `media_store` data files from an existing installation](importing-media-store.md) (optional)
- [Importing `media_store` data files from an existing Synapse installation](importing-synapse-media-store.md) (optional)


## Starting the services


roles/matrix-postgres/tasks/import_sqlite_db.yml → roles/matrix-postgres/tasks/import_synapse_sqlite_db.yml Просмотреть файл


+ 4
- 2
roles/matrix-postgres/tasks/main.yml Просмотреть файл

@@ -19,10 +19,12 @@
tags:
- import-postgres

- import_tasks: "{{ role_path }}/tasks/import_sqlite_db.yml"
# The `run_postgres_import_sqlite_db` variable had better be renamed to be consistent,
# but that's a breaking change which may cause trouble for people.
- import_tasks: "{{ role_path }}/tasks/import_synapse_sqlite_db.yml"
when: run_postgres_import_sqlite_db|bool
tags:
- import-sqlite-db
- import-synapse-sqlite-db

- import_tasks: "{{ role_path }}/tasks/upgrade_postgres.yml"
when: run_postgres_upgrade|bool


+ 1
- 1
roles/matrix-synapse/tasks/main.yml Просмотреть файл

@@ -17,7 +17,7 @@
- import_tasks: "{{ role_path }}/tasks/import_media_store.yml"
when: run_synapse_import_media_store|bool
tags:
- import-media-store
- import-synapse-media-store

- import_tasks: "{{ role_path }}/tasks/register_user.yml"
when: run_synapse_register_user|bool


Загрузка…
Отмена
Сохранить