2021-05-10 19:56:48 +02:00
|
|
|
Index: synapse/contrib/example_log_config.yaml
|
2020-02-03 11:56:06 +01:00
|
|
|
===================================================================
|
2021-05-10 19:56:48 +02:00
|
|
|
--- synapse.orig/contrib/example_log_config.yaml
|
|
|
|
+++ synapse/contrib/example_log_config.yaml
|
2020-02-03 11:56:06 +01:00
|
|
|
@@ -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]
|
2021-05-10 19:56:48 +02:00
|
|
|
Index: synapse/synapse/config/key.py
|
2020-02-03 11:56:06 +01:00
|
|
|
===================================================================
|
2021-05-10 19:56:48 +02:00
|
|
|
--- synapse.orig/synapse/config/key.py
|
|
|
|
+++ synapse/synapse/config/key.py
|
2022-04-25 18:28:41 +02:00
|
|
|
@@ -110,7 +110,7 @@ class KeyConfig(Config):
|
2020-02-03 11:56:06 +01:00
|
|
|
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")
|
2022-07-14 11:58:53 +02:00
|
|
|
@@ -183,7 +183,7 @@ class KeyConfig(Config):
|
2022-04-25 18:28:41 +02:00
|
|
|
generate_secrets: bool = False,
|
|
|
|
**kwargs: Any,
|
|
|
|
) -> str:
|
2020-02-03 11:56:06 +01:00
|
|
|
- base_key_name = os.path.join(config_dir_path, server_name)
|
|
|
|
+ base_key_name = os.path.join('/etc/matrix-synapse/keys.d', server_name)
|
2022-07-14 11:58:53 +02:00
|
|
|
macaroon_secret_key = ""
|
|
|
|
form_secret = ""
|
2020-02-03 11:56:06 +01:00
|
|
|
|
2021-05-10 19:56:48 +02:00
|
|
|
Index: synapse/synapse/config/logger.py
|
2020-02-03 11:56:06 +01:00
|
|
|
===================================================================
|
2021-05-10 19:56:48 +02:00
|
|
|
--- synapse.orig/synapse/config/logger.py
|
|
|
|
+++ synapse/synapse/config/logger.py
|
2022-07-14 11:58:53 +02:00
|
|
|
@@ -150,7 +150,7 @@ class LoggingConfig(Config):
|
2022-04-25 18:28:41 +02:00
|
|
|
def generate_config_section(
|
|
|
|
self, config_dir_path: str, server_name: str, **kwargs: Any
|
|
|
|
) -> str:
|
2020-02-03 11:56:06 +01:00
|
|
|
- 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 (
|
|
|
|
"""\
|
2022-07-14 11:58:53 +02:00
|
|
|
log_config: "%(log_config)s"
|
2021-05-10 19:56:48 +02:00
|
|
|
Index: synapse/synapse/config/server.py
|
2020-02-03 11:56:06 +01:00
|
|
|
===================================================================
|
2021-05-10 19:56:48 +02:00
|
|
|
--- synapse.orig/synapse/config/server.py
|
|
|
|
+++ synapse/synapse/config/server.py
|
2022-10-26 14:00:57 +02:00
|
|
|
@@ -742,7 +742,7 @@ class ServerConfig(Config):
|
2020-02-03 11:56:06 +01:00
|
|
|
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")
|
|
|
|
|
2022-07-14 11:58:53 +02:00
|
|
|
secure_listeners = []
|
|
|
|
unsecure_listeners = []
|