From 6d53d036e770de6b194cd120d91b60c47a39205d Mon Sep 17 00:00:00 2001 From: Lama Date: Sun, 29 Dec 2024 18:29:23 +0300 Subject: [PATCH 1/6] Create sample_application_service.yaml --- docs/sample_application_service.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 docs/sample_application_service.yaml diff --git a/docs/sample_application_service.yaml b/docs/sample_application_service.yaml new file mode 100644 index 00000000000..cd79bd55252 --- /dev/null +++ b/docs/sample_application_service.yaml @@ -0,0 +1,11 @@ +id: +url: null +as_token: +hs_token: +sender_localpart: +namespaces: + users: + - exclusive: false + regex: ".*" + aliases: [] + rooms: [] From d6491b13028fd60891e497c873c10227df38df3b Mon Sep 17 00:00:00 2001 From: Lama Date: Sun, 29 Dec 2024 18:30:01 +0300 Subject: [PATCH 2/6] Create 18057.doc --- changelog.d/18057.doc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/18057.doc diff --git a/changelog.d/18057.doc b/changelog.d/18057.doc new file mode 100644 index 00000000000..ddf7d4f07c1 --- /dev/null +++ b/changelog.d/18057.doc @@ -0,0 +1 @@ +Add application service sample configuration file. Contribution by Lama Alosaimi. From 783ac5358670d4a2e159908451e4d2911051958a Mon Sep 17 00:00:00 2001 From: Lama Date: Mon, 30 Dec 2024 19:19:39 +0300 Subject: [PATCH 3/6] Rename 18057.doc to 18058.doc --- changelog.d/{18057.doc => 18058.doc} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename changelog.d/{18057.doc => 18058.doc} (100%) diff --git a/changelog.d/18057.doc b/changelog.d/18058.doc similarity index 100% rename from changelog.d/18057.doc rename to changelog.d/18058.doc From e01b1c85dbf08d3889c08e344602d62053ea9d23 Mon Sep 17 00:00:00 2001 From: Lama Date: Mon, 30 Dec 2024 19:20:47 +0300 Subject: [PATCH 4/6] Update 18058.doc --- changelog.d/18058.doc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.d/18058.doc b/changelog.d/18058.doc index ddf7d4f07c1..618957918f4 100644 --- a/changelog.d/18058.doc +++ b/changelog.d/18058.doc @@ -1 +1 @@ -Add application service sample configuration file. Contribution by Lama Alosaimi. +Add application service sample configuration file. From 800e050cd163b45d74e29c8ae6289c7817fbb3e6 Mon Sep 17 00:00:00 2001 From: Lama <35597031+lamoboos223@users.noreply.github.com> Date: Wed, 8 Jan 2025 13:20:51 +0300 Subject: [PATCH 5/6] Create synapse_ascii.py --- synapse/util/synapse_ascii.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 synapse/util/synapse_ascii.py diff --git a/synapse/util/synapse_ascii.py b/synapse/util/synapse_ascii.py new file mode 100644 index 00000000000..efeed26a902 --- /dev/null +++ b/synapse/util/synapse_ascii.py @@ -0,0 +1,12 @@ +SYNAPSE_LOGO = ''' + ____ + / ___| _ _ _ __ __ _ _ __ ___ ___ + \___ \| | | | '_ \ / _` | '_ \/ __|/ _ \\ + ___) | |_| | | | | (_| | |_) \__ \ __/ + |____/ \__, |_| |_|\__,_| .__/|___/\___| + |___/ |_| +''' + +def get_logo(version: str) -> str: + """Returns the Synapse ASCII art logo.""" + return SYNAPSE_LOGO + "\t\t\t\t\t\t" + version + "\n" From ad45c86783eff273c52c4148e5811b664c471bf3 Mon Sep 17 00:00:00 2001 From: Lama <35597031+lamoboos223@users.noreply.github.com> Date: Wed, 8 Jan 2025 13:22:30 +0300 Subject: [PATCH 6/6] Update server.py --- synapse/server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/synapse/server.py b/synapse/server.py index 462e15cc2ff..bc8dfccbf42 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -155,6 +155,7 @@ from synapse.util.ratelimitutils import FederationRateLimiter from synapse.util.stringutils import random_string from synapse.util.task_scheduler import TaskScheduler +from synapse.util.synapse_ascii import get_logo logger = logging.getLogger(__name__) @@ -355,6 +356,7 @@ def get_instance_name(self) -> str: def setup(self) -> None: logger.info("Setting up.") + logger.info(get_logo(self.version_string)) self.start_time = int(self.get_clock().time()) self.datastores = Databases(self.DATASTORE_CLASS, self) logger.info("Finished setting up.")