|
388 | 388 | its reliance on python2.
|
389 | 389 | </para>
|
390 | 390 | </listitem>
|
| 391 | + <listitem> |
| 392 | + <para> |
| 393 | + The <literal>matrix-synapse</literal> service |
| 394 | + (<literal>services.matrix-synapse</literal>) has been |
| 395 | + converted to use the <literal>settings</literal> option |
| 396 | + defined in RFC42. This means that options that are part of |
| 397 | + your <literal>homeserver.yaml</literal> configuration, and |
| 398 | + that were specified at the top-level of the module |
| 399 | + (<literal>services.matrix-synapse</literal>) now need to be |
| 400 | + moved into |
| 401 | + <literal>services.matrix-synapse.settings</literal>. And while |
| 402 | + not all options you may use are defined in there, they are |
| 403 | + still supported, because you can set arbitrary values in this |
| 404 | + freeform type. |
| 405 | + </para> |
| 406 | + <para> |
| 407 | + An example to make the required migration clearer: |
| 408 | + </para> |
| 409 | + <para> |
| 410 | + Before: |
| 411 | + </para> |
| 412 | + <programlisting language="bash"> |
| 413 | +{ |
| 414 | + services.matrix-synapse = { |
| 415 | + enable = true; |
| 416 | + |
| 417 | + server_name = "example.com"; |
| 418 | + public_baseurl = "https://example.com:8448"; |
| 419 | + |
| 420 | + enable_registration = false; |
| 421 | + registration_shared_secret = "xohshaeyui8jic7uutuDogahkee3aehuaf6ei3Xouz4iicie5thie6nohNahceut"; |
| 422 | + macaroon_secret_key = "xoo8eder9seivukaiPh1cheikohquuw8Yooreid0The4aifahth3Ou0aiShaiz4l"; |
| 423 | + |
| 424 | + tls_certificate_path = "/var/lib/acme/example.com/fullchain.pem"; |
| 425 | + tls_certificate_path = "/var/lib/acme/example.com/fullchain.pem"; |
| 426 | + |
| 427 | + listeners = [ { |
| 428 | + port = 8448; |
| 429 | + bind_address = ""; |
| 430 | + type = "http"; |
| 431 | + tls = true; |
| 432 | + resources = [ { |
| 433 | + names = [ "client" ]; |
| 434 | + compress = true; |
| 435 | + } { |
| 436 | + names = [ "federation" ]; |
| 437 | + compress = false; |
| 438 | + } ]; |
| 439 | + } ]; |
| 440 | + |
| 441 | + }; |
| 442 | +} |
| 443 | +</programlisting> |
| 444 | + <para> |
| 445 | + After: |
| 446 | + </para> |
| 447 | + <programlisting language="bash"> |
| 448 | +{ |
| 449 | + services.matrix-synapse = { |
| 450 | + enable = true; |
| 451 | + |
| 452 | + # this attribute set holds all values that go into your homeserver.yaml configuration |
| 453 | + # See https://github.com/matrix-org/synapse/blob/develop/docs/sample_config.yaml for |
| 454 | + # possible values. |
| 455 | + settings = { |
| 456 | + server_name = "example.com"; |
| 457 | + public_baseurl = "https://example.com:8448"; |
| 458 | + |
| 459 | + enable_registration = false; |
| 460 | + # pass `registration_shared_secret` and `macaroon_secret_key` via `extraConfigFiles` instead |
| 461 | + |
| 462 | + tls_certificate_path = "/var/lib/acme/example.com/fullchain.pem"; |
| 463 | + tls_certificate_path = "/var/lib/acme/example.com/fullchain.pem"; |
| 464 | + |
| 465 | + listeners = [ { |
| 466 | + port = 8448; |
| 467 | + bind_address = [ |
| 468 | + "::" |
| 469 | + "0.0.0.0" |
| 470 | + ]; |
| 471 | + type = "http"; |
| 472 | + tls = true; |
| 473 | + resources = [ { |
| 474 | + names = [ "client" ]; |
| 475 | + compress = true; |
| 476 | + } { |
| 477 | + names = [ "federation" ]; |
| 478 | + compress = false; |
| 479 | + } ]; |
| 480 | + } ]; |
| 481 | + }; |
| 482 | + |
| 483 | + extraConfigFiles = [ |
| 484 | + /run/keys/matrix-synapse/secrets.yaml |
| 485 | + ]; |
| 486 | + }; |
| 487 | +} |
| 488 | +</programlisting> |
| 489 | + <para> |
| 490 | + The secrets in your original config should be migrated into a |
| 491 | + YAML file that is included via |
| 492 | + <literal>extraConfigFiles</literal>. |
| 493 | + </para> |
| 494 | + <para> |
| 495 | + Additionally a few option defaults have been synced up with |
| 496 | + upstream default values, for example the |
| 497 | + <literal>max_upload_size</literal> grew from |
| 498 | + <literal>10M</literal> to <literal>50M</literal>. |
| 499 | + </para> |
| 500 | + </listitem> |
391 | 501 | <listitem>
|
392 | 502 | <para>
|
393 | 503 | The MoinMoin wiki engine
|
|
0 commit comments