Проблема с настройкой Prosody

Автор nihi1ist, 03 ноября 2017, 14:01:26

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

nihi1ist

Здравствуйте.

Имеется сервер с Debian 9 + Bind9 + Apache 2.4. Настроен локальный домен domain.org. Такой же домен прикручен к роутеру. На нем идет переадресация на сервер. Установил Prosody 0.10 + MySQL. Добавил пользователя. Он появился в таблице БД. Столкнулся с несколькими проблемами. Подскажите, что я делаю не так?

Проблема №1: В качестве клиента используется Gajim, при подключении получаю ошибку:
ЦитироватьCould not connect to "domain.org"
Сервер ответил: The error condition is not one of those defined by the other conditions in this list.
Проверьте настройки сети или попробуйте еще раз позже.

Проблема №2: Установил модуль mod_admin_web. Страничку авторизации показывает (Картинка во вложении). Но авторизация не проходит.

Проблема №3: Пытаюсь установить модуль mod_register_web, но при попытке входу получаю ошибку 404.

Мой конфиг:
Открыть содержимое (спойлер)
-- Prosody XMPP Server Configuration
---------- Server-wide settings ----------
admins = { "user1@domain.org" }

--use_libevent = true

--plugin_paths = {}

modules_enabled = {

   -- Generally required
      "roster"; -- Allow users to have a roster. Recommended ;)
      "saslauth"; -- Authentication for clients and servers. Recommended if you want to log in.
      "tls"; -- Add support for secure TLS on c2s/s2s connections
      "dialback"; -- s2s dialback support
      "disco"; -- Service discovery

   -- Not essential, but recommended
      "carbons"; -- Keep multiple clients in sync
      "pep"; -- Enables users to publish their mood, activity, playing music and more
      "private"; -- Private XML storage (for room bookmarks, etc.)
      "blocklist"; -- Allow users to block communications with other users
      "vcard"; -- Allow users to set vCards

   -- Nice to have
      "version"; -- Replies to server version requests
      "uptime"; -- Report how long server has been running
      "time"; -- Let others know the time here on this server
      "ping"; -- Replies to XMPP pings with pongs
      "register"; -- Allow users to register on this server using a client and change passwords
      "mam"; -- Store messages in an archive and allow users to access it

   -- Admin interfaces
      "admin_adhoc"; -- Allows administration via an XMPP client that supports ad-hoc commands
      "admin_telnet"; -- Opens telnet console interface on localhost port 5582
      "admin_web";

   -- HTTP modules
      "http";
      "bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
      "websocket"; -- XMPP over WebSockets
      "http_files"; -- Serve static files from a directory over HTTP

   -- Other specific functionality
      --"limits"; -- Enable bandwidth limiting for XMPP connections
      "groups"; -- Shared roster support
      --"server_contact_info"; -- Publish contact information for this service
      --"announce"; -- Send announcement to all online users
      --"welcome"; -- Welcome users who register accounts
      --"watchregistrations"; -- Alert admins of registrations
      --"motd"; -- Send a message to users when they log in
      --"legacyauth"; -- Legacy authentication. Only used by some old clients and bots.
      --"proxy65"; -- Enables a file transfer proxy service which clients behind NAT can use
}

-- These modules are auto-loaded, but should you want
-- to disable them then uncomment them here:
modules_disabled = {
   -- "offline"; -- Store offline messages
   -- "c2s"; -- Handle client connections
   -- "s2s"; -- Handle server-to-server connections
   -- "posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
}

http_ports = { 5280 }
http_interfaces = { "*" }

https_ports = { 5281 }
https_interfaces = { "*" }

http_default_host = "domain.org"
http_paths = {
      register_web = "/register-on-$host";
}

allow_registration = true
c2s_require_encryption = true
s2s_require_encryption = true
s2s_secure_auth = false

pidfile = "/var/run/prosody/prosody.pid"
authentication = "internal_hashed"
storage = "sql" -- Default is "internal"
sql = { driver = "MySQL", database = "prosody", username = "prosody", password = "pa$$w0rd", host = "localhost" }
archive_expires_after = "1w" -- Remove archived messages after 1 week

log = {
   info = "/var/log/prosody/prosody.log"; -- Change 'info' to 'debug' for verbose logging
   error = "/var/log/prosody/prosody.err";
   -- "*syslog"; -- Uncomment this for logging to syslog
   -- "*console"; -- Log to the console, useful for debugging with daemonize=false
}

certificates = "certs"

VirtualHost "localhost"

VirtualHost "domain.org"
http_host = "domain.org"
https_certificate = "certs/domain.org.crt"

captcha_options = {
   recaptcha_private_key = "123456";
   recaptcha_public_key = "3214561";
}
[свернуть]