bundles/matrix-synapse: ensure matrix-synapse does not mess with our homeserver.yaml
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
77f785135d
commit
337b660f5a
3 changed files with 26 additions and 0 deletions
5
bundles/matrix-synapse/files/report_stats.yaml
Normal file
5
bundles/matrix-synapse/files/report_stats.yaml
Normal file
|
@ -0,0 +1,5 @@
|
|||
# This file is autogenerated, and will be recreated on upgrade if it is deleted.
|
||||
# Any changes you make will be preserved.
|
||||
|
||||
# Whether to report anonymized homeserver usage statistics.
|
||||
report_stats: false
|
9
bundles/matrix-synapse/files/server_name.yaml
Normal file
9
bundles/matrix-synapse/files/server_name.yaml
Normal file
|
@ -0,0 +1,9 @@
|
|||
# This file is autogenerated, and will be recreated on upgrade if it is deleted.
|
||||
# Any changes you make will be preserved.
|
||||
|
||||
# The domain name of the server, with optional explicit port.
|
||||
# This is used by remote servers to connect to this server,
|
||||
# e.g. matrix.org, localhost:8080, etc.
|
||||
# This is also the last part of your UserID.
|
||||
#
|
||||
server_name: ${server_name}
|
|
@ -24,6 +24,18 @@ files = {
|
|||
'/etc/matrix-synapse/homeserver.signing.key': {
|
||||
'content': repo.vault.decrypt_file('matrix-synapse/{}/homeserver_signing.key.vault'.format(node.name)),
|
||||
},
|
||||
'/etc/matrix-synapse/conf.d/server_name.yaml': {
|
||||
# We don't actually need this file. However, if we don't put the
|
||||
# server name in there, synapse will somehow remove it from
|
||||
# homeserver.yaml when installing a new matrix-synapse package.
|
||||
# Our override.conf ensures this file is never read, so we don't
|
||||
# need to restart synapse after changing stuff in here.
|
||||
'content_type': 'mako',
|
||||
'context': node.metadata['matrix-synapse'],
|
||||
},
|
||||
'/etc/matrix-synapse/conf.d/report_stats.yaml': {
|
||||
# see comment above
|
||||
},
|
||||
}
|
||||
|
||||
svc_systemd = {
|
||||
|
|
Loading…
Reference in a new issue