Browse Source

new: [odoo-tecnativa] will manage longpolling on apache relations

Use ``options.workers`` to manage longpolling redirection.
framadate
Valentin Lab 6 years ago
parent
commit
ff0851fac2
  1. 10
      odoo-tecnativa/metadata.yml

10
odoo-tecnativa/metadata.yml

@ -42,7 +42,15 @@ uses:
auto: pair
solves:
proxy: "Public access"
#default-options:
default-options:
apache-custom-rules:
- !bash-stdout |
workers=$(relation-base-compose-get workers 2>/dev/null)
workers=${workers:-1}
if [ "$workers" -gt 1 ]; then
echo "ProxyPass /longpolling/ http://${MASTER_BASE_SERVICE_NAME}:8072/longpolling/"
echo "ProxyPassReverse /longpolling/ http://${MASTER_BASE_SERVICE_NAME}:8072/longpolling/"
fi
# network-isolation:
# whitelist: ## required external services used by this service

Loading…
Cancel
Save