* Move multiple defaults from entrypoint script to cfg.lua files.
* Move remaining defaults from entrypoint script to cfg.lua files.
* Update postgres version in tests
* Register users with prosodyctl in tests
* Replace 'docker-compose' with 'docker compose'
Adjust config:
Replace deprecated legacy_ssl with c2s_direct_tls.
Removed use_libevent = true. This means the default is now used which is epoll.
Added a test to check that no deprecated config settings are used.
Fixes#55 and fixes#56:
* Add environment variable HTTP_UPLOAD_FILE_SIZE_LIMIT for setting http_upload_file_size_limit
* Add environment variable HTTP_MAX_CONTENT_SIZE
* Add domain_http_upload to disco_items to support http_upload on some clients and if http_upload is not a subdomain
This commit updates the docker-compose.yml file to use example.com domain instead of localhost.
It also adds a new Prosody instance using LDAP authentication with glauth as the backend. The commit also includes a new file config.cfg for the glauth server configuration.
This commit adds support for LDAP authentication.
The Dockerfile has been modified to install the required Lua modules (lua-ldap) and the prosody.cfg.lua file has been modified to add environment variables for configuring the LDAP connection. These environment variables include LDAP_BASE, LDAP_SERVER, LDAP_ROOTDN, LDAP_PASSWORD, LDAP_FILTER, LDAP_SCOPE, LDAP_TLS, LDAP_MODE, and LDAP_ADMIN_FILTER.
The authentication variable has also been updated to use the value of the AUTHENTICATION environment variable, which defaults to "internal_hashed" if not set. This allows users to configure Prosody to use LDAP for authentication instead of the default internal hashing method.
* Update test dependencies: aioxmpp, pytest-asyncio + add pytz to requirements.txt
This fixes the following error when running the tests:
E ModuleNotFoundError: No module named 'pytz'
Instead of pytz only pytz-deprecation-shim was installed.
TODO Check if "pytz" can be removed from requirements.txt later on.
* Add environment variables for Database configuration.
* Install postgres and mysql dependencies.
* Test refactoring
* Run tests for prosody with postgres and also for prosody with sqlite.
* Add tests that check if postgres or sqlite is used.
Created a tests folder which contains pytest and bats tests.
Pytest is used to login and send messages to other accounts.
Bats is used to check the log for debug messages.
This fixes#13.