From b6c11afbb7a0f557c43e5ed9cec4b8d94ceacef8 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Tue, 16 Apr 2024 18:34:24 -0700 Subject: [PATCH] update plugin install path --- Dockerfile | 6 ++++-- prosody.cfg.lua | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c131a5e..03c0bd2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,10 +13,12 @@ RUN mkdir -p /etc/prosody/conf.d/ RUN update-alternatives --set lua-interpreter /usr/bin/lua5.4 -RUN prosodyctl install --server=https://modules.prosody.im/rocks/ mod_cloud_notify_extensions - COPY prosody.cfg.lua /etc/prosody/prosody.cfg.lua +RUN mkdir -p /usr/local/prosody/custom_plugins/lib/luarocks/rocks-5.4 +RUN chown -R prosody:prosody /usr/local/prosody +RUN prosodyctl install --server=https://modules.prosody.im/rocks/ mod_cloud_notify_extensions + EXPOSE 5222 EXPOSE 5269 EXPOSE 5280 diff --git a/prosody.cfg.lua b/prosody.cfg.lua index 11ae58b..d0ccc62 100644 --- a/prosody.cfg.lua +++ b/prosody.cfg.lua @@ -25,7 +25,8 @@ admins = { } -- This option allows you to specify additional locations where Prosody -- will search first for modules. For additional modules you can install, see -- the community module repository at https://modules.prosody.im/ -plugin_paths = { "/var/lib/prosody/custom_plugins" } +--plugin_paths = { } +installer_plugin_path = "/usr/local/prosody/custom_plugins" -- This is the list of modules Prosody will load on startup. -- Documentation for bundled modules can be found at: https://prosody.im/doc/modules