Browse Source

fix: [odoo-tecnativa] support websocket in version ``16.0``

boris/docuseal
Valentin Lab 1 year ago
parent
commit
f082357657
  1. 7
      odoo-tecnativa/metadata.yml

7
odoo-tecnativa/metadata.yml

@ -63,9 +63,16 @@ uses:
- !bash-stdout |
workers=$(relation-base-compose-get workers 2>/dev/null)
workers=${workers:-1}
version=$(cached_cmd_on_base_image "$MASTER_BASE_SERVICE_NAME" \
"python -c 'import odoo; print(odoo.cli.server.__version__)'") || exit 1
if [ "$workers" -gt 1 ]; then
if [ "${version%.*}" -lt 16 ]; then
echo "ProxyPass /longpolling/ http://${MASTER_BASE_SERVICE_NAME}:8072/longpolling/"
echo "ProxyPassReverse /longpolling/ http://${MASTER_BASE_SERVICE_NAME}:8072/longpolling/"
else
echo "ProxyPass /websocket ws://${MASTER_BASE_SERVICE_NAME}:8072/websocket"
echo "ProxyPassReverse /websocket ws://${MASTER_BASE_SERVICE_NAME}:8072/websocket"
fi
fi
backup:
constraint: recommended

Loading…
Cancel
Save