1
0

UPGRADE.rst 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. Upgrading to v0.3.0
  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. Web Client
  20. ----------
  21. The VoIP specification has changed between v0.2.0 and v0.3.0. Users should
  22. refresh any browser tabs to get the latest web client code. Users on
  23. v0.2.0 of the web client will not be able to call those on v0.3.0 and
  24. vice versa.
  25. Upgrading to v0.2.0
  26. ===================
  27. The home server now requires setting up of SSL config before it can run. To
  28. automatically generate default config use::
  29. $ python synapse/app/homeserver.py \
  30. --server-name machine.my.domain.name \
  31. --bind-port 8448 \
  32. --config-path homeserver.config \
  33. --generate-config
  34. This config can be edited if desired, for example to specify a different SSL
  35. certificate to use. Once done you can run the home server using::
  36. $ python synapse/app/homeserver.py --config-path homeserver.config
  37. See the README.rst for more information.
  38. Also note that some config options have been renamed, including:
  39. - "host" to "server-name"
  40. - "database" to "database-path"
  41. - "port" to "bind-port" and "unsecure-port"
  42. Upgrading to v0.0.1
  43. ===================
  44. This release completely changes the database schema and so requires upgrading
  45. it before starting the new version of the homeserver.
  46. The script "database-prepare-for-0.0.1.sh" should be used to upgrade the
  47. database. This will save all user information, such as logins and profiles,
  48. but will otherwise purge the database. This includes messages, which
  49. rooms the home server was a member of and room alias mappings.
  50. Before running the command the homeserver should be first completely
  51. shutdown. To run it, simply specify the location of the database, e.g.:
  52. ./database-prepare-for-0.0.1.sh "homeserver.db"
  53. Once this has successfully completed it will be safe to restart the
  54. homeserver. You may notice that the homeserver takes a few seconds longer to
  55. restart than usual as it reinitializes the database.
  56. On startup of the new version, users can either rejoin remote rooms using room
  57. aliases or by being reinvited. Alternatively, if any other homeserver sends a
  58. message to a room that the homeserver was previously in the local HS will
  59. automatically rejoin the room.