matrix-synapse/matrix-synapse-1.4.1-paths.patch
Marcus Rueckert 8778bdbcb5 - Update to 1.122.0
Please note that this version of Synapse drops support for
  PostgreSQL 11 and 12. The minimum version of PostgreSQL supported
  is now version 13.
  - Deprecations and Removals
    - Remove support for PostgreSQL 11 and 12. Contributed by @clokep. (#18034)
  - Features
    - Added the email.tlsname config option. This allows specifying
      the domain name used to validate the SMTP server's TLS
      certificate separately from the email.smtp_host to connect
      to. (#17849)
    - Module developers will have access to the user ID of the
      requester when adding check_username_for_spam callbacks to
      spam_checker_module_callbacks. Contributed by
      Wilson@Pangea.chat. (#17916)
    - Add endpoints to the Admin API to fetch the number of invites
      the provided user has sent after a given timestamp, fetch the
      number of rooms the provided user has joined after a given
      timestamp, and get report IDs of event reports against a
      provided user (i.e. where the user was the sender of the
      reported event). (#17948)
    - Support stable account suspension from MSC3823. (#17964)
    - Add macaroon_secret_key_path config option. (#17983)
  - Bugfixes
    - Fix bug when rejecting withdrew invite with a
      third_party_rules module, where the invite would be stuck for
      the client. (#17930)
    - Properly purge state groups tables when purging a room with
      the Admin API. (#18024)
    - Fix a bug preventing the admin redaction endpoint from

OBS-URL: https://build.opensuse.org/package/show/network:messaging:matrix/matrix-synapse?expand=0&rev=360
2025-01-14 17:13:10 +00:00

62 lines
2.5 KiB
Diff

Index: synapse/contrib/example_log_config.yaml
===================================================================
--- synapse.orig/contrib/example_log_config.yaml
+++ synapse/contrib/example_log_config.yaml
@@ -26,7 +26,7 @@ handlers:
file:
class: logging.handlers.RotatingFileHandler
formatter: fmt
- filename: /var/log/synapse/homeserver.log
+ filename: /var/log/matrix-synapse/homeserver.log
maxBytes: 100000000
backupCount: 3
filters: [context]
Index: synapse/synapse/config/key.py
===================================================================
--- synapse.orig/synapse/config/key.py
+++ synapse/synapse/config/key.py
@@ -117,7 +117,7 @@ class KeyConfig(Config):
signing_key_path = config.get("signing_key_path")
if signing_key_path is None:
signing_key_path = os.path.join(
- config_dir_path, config["server_name"] + ".signing.key"
+ '/etc/matrix-synapse/keys.d', config["server_name"] + ".signing.key"
)
self.signing_key = self.read_signing_keys(signing_key_path, "signing_key")
@@ -190,7 +190,7 @@ class KeyConfig(Config):
generate_secrets: bool = False,
**kwargs: Any,
) -> str:
- base_key_name = os.path.join(config_dir_path, server_name)
+ base_key_name = os.path.join('/etc/matrix-synapse/keys.d', server_name)
macaroon_secret_key = ""
form_secret = ""
Index: synapse/synapse/config/logger.py
===================================================================
--- synapse.orig/synapse/config/logger.py
+++ synapse/synapse/config/logger.py
@@ -156,7 +156,7 @@ class LoggingConfig(Config):
def generate_config_section(
self, config_dir_path: str, server_name: str, **kwargs: Any
) -> str:
- log_config = os.path.join(config_dir_path, server_name + ".log.config")
+ log_config = os.path.join('/etc/matrix-synapse/', server_name + ".log.config")
return """\
log_config: "%(log_config)s"
""" % locals()
Index: synapse/synapse/config/server.py
===================================================================
--- synapse.orig/synapse/config/server.py
+++ synapse/synapse/config/server.py
@@ -810,7 +810,7 @@ class ServerConfig(Config):
bind_port = 8448
unsecure_port = 8008
- pid_file = os.path.join(data_dir_path, "homeserver.pid")
+ pid_file = os.path.join("/run/matrix-synapse", "homeserver.pid")
secure_listeners = []
unsecure_listeners = []