From 8de737bf318dc27c978c1d01c52d45f1898158c0 Mon Sep 17 00:00:00 2001 From: Blallo <blallo@autistici.org> Date: Tue, 15 Nov 2022 00:42:53 +0100 Subject: [PATCH] Serve http on 5282 --- roles/prosody/templates/prosody.cfg.lua.j2 | 4 +++- services.im.yml | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/roles/prosody/templates/prosody.cfg.lua.j2 b/roles/prosody/templates/prosody.cfg.lua.j2 index afa361e3..cc77e1e4 100644 --- a/roles/prosody/templates/prosody.cfg.lua.j2 +++ b/roles/prosody/templates/prosody.cfg.lua.j2 @@ -37,6 +37,7 @@ modules_enabled = { --"admin_telnet"; -- Opens telnet console interface on localhost port 5582 -- HTTP modules + "http"; -- Needed to serve the metrics "http_files"; -- Serve static files from a directory over HTTP -- "http_upload"; -- Enable XEP-0363 which let clients upload files over HTTP "http_upload_external"; -- Enable XEP-0363, which lets clients upload files over HTTP to an external web server. @@ -61,9 +62,10 @@ modules_enabled = { } -- statistics and metrics +http_ports = { 5282 } +http_interfaces = { "", "::" } --- The http_openmetrics module exposes the metrics gathered by this internal --- mechanism - statistics = "internal" -- this is fine iff we have only one Prometheus instance statistics_interval = "manual" diff --git a/services.im.yml b/services.im.yml index dcc8041b..7a0b75bd 100644 --- a/services.im.yml +++ b/services.im.yml @@ -12,6 +12,7 @@ jabber: - 5222 - 5269 - 5280 + - 5282 - 15222 - 15269 - 15280 @@ -60,7 +61,7 @@ jabber: compress: true monitoring_endpoints: - - port: 5280 + - port: 5282 scheme: http systemd_services: -- GitLab