Mercurial > libervia-backend
view docker/web-demo.yml @ 4306:94e0968987cd
plugin XEP-0033: code modernisation, improve delivery, data validation:
- Code has been rewritten using Pydantic models and `async` coroutines for data validation
and cleaner element parsing/generation.
- Delivery has been completely rewritten. It now works even if server doesn't support
multicast, and send to local multicast service first. Delivering to local multicast
service first is due to bad support of XEP-0033 in server (notably Prosody which has an
incomplete implementation), and the current impossibility to detect if a sub-domain
service handles fully multicast or only for local domains. This is a workaround to have
a good balance between backward compatilibity and use of bandwith, and to make it work
with the incoming email gateway implementation (the gateway will only deliver to
entities of its own domain).
- disco feature checking now uses `async` corountines. `host` implementation still use
Deferred return values for compatibility with legacy code.
rel 450
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 26 Sep 2024 16:12:01 +0200 |
parents | 87caf6284c55 |
children |
line wrap: on
line source
version: "3.6" services: prosody: image: libervia/prosody:demo depends_on: # we need to depend on backend to get IP address of the container for conf - backend tmpfs: - /var/log/prosody networks: default: aliases: - server1.test db: image: postgres environment: POSTGRES_PASSWORD: test_e2e POSTGRES_DB: pubsub tmpfs: /var/lib/postgresql/data pubsub: image: libervia/pubsub depends_on: - db - prosody environment: PGHOST: db PGUSER: postgres PGPASSWORD: test_e2e LIBERVIA_PUBSUB_RHOST: server1.test LIBERVIA_PUBSUB_JID: pubsub.server1.test LIBERVIA_PUBSUB_XMPP_PWD: test_e2e backend: image: libervia/backend:dev-demo volumes: - libervia-web-demo_data:/home/libervia/.local/share/libervia ports: # HTTP Upload - "7777:7777" networks: default: aliases: - libervia-backend.test web: image: libervia/web:dev-demo depends_on: - backend environment: LIBERVIA_PASSPHRASE: test_demo volumes: - libervia-web-demo_data:/home/libervia/.local/share/libervia ports: - "8880:8880" networks: default: aliases: - libervia-web.test volumes: libervia-web-demo_data: