UPGRADE.rst 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. Upgrading to Latest
  2. ===================
  3. This registration API now closely matches the login API. This introduces a bit
  4. more backwards and forwards between the HS and the client, but this improves
  5. the overall flexibility of the API. You can now GET on /register to retrieve a list
  6. of valid registration flows. Upon choosing one, they are submitted in the same
  7. way as login, e.g::
  8. {
  9. type: m.login.password,
  10. user: foo,
  11. password: bar
  12. }
  13. The default HS supports 2 flows, with and without Identity Server email
  14. authentication. Enabling captcha on the HS will add in an extra step to all
  15. flows: ``m.login.recaptcha`` which must be completed before you can transition
  16. to the next stage. There is a new login type: ``m.login.email.identity`` which
  17. contains the ``threepidCreds`` key which were previously sent in the original
  18. register request. For more information on this, see the specification.
  19. Upgrading to v0.2.0
  20. ===================
  21. The home server now requires setting up of SSL config before it can run. To
  22. automatically generate default config use::
  23. $ python synapse/app/homeserver.py \
  24. --server-name machine.my.domain.name \
  25. --bind-port 8448 \
  26. --config-path homeserver.config \
  27. --generate-config
  28. This config can be edited if desired, for example to specify a different SSL
  29. certificate to use. Once done you can run the home server using::
  30. $ python synapse/app/homeserver.py --config-path homeserver.config
  31. See the README.rst for more information.
  32. Also note that some config options have been renamed, including:
  33. - "host" to "server-name"
  34. - "database" to "database-path"
  35. - "port" to "bind-port" and "unsecure-port"
  36. Upgrading to v0.0.1
  37. ===================
  38. This release completely changes the database schema and so requires upgrading
  39. it before starting the new version of the homeserver.
  40. The script "database-prepare-for-0.0.1.sh" should be used to upgrade the
  41. database. This will save all user information, such as logins and profiles,
  42. but will otherwise purge the database. This includes messages, which
  43. rooms the home server was a member of and room alias mappings.
  44. Before running the command the homeserver should be first completely
  45. shutdown. To run it, simply specify the location of the database, e.g.:
  46. ./database-prepare-for-0.0.1.sh "homeserver.db"
  47. Once this has successfully completed it will be safe to restart the
  48. homeserver. You may notice that the homeserver takes a few seconds longer to
  49. restart than usual as it reinitializes the database.
  50. On startup of the new version, users can either rejoin remote rooms using room
  51. aliases or by being reinvited. Alternatively, if any other homeserver sends a
  52. message to a room that the homeserver was previously in the local HS will
  53. automatically rejoin the room.