Use ``options.workers`` to manage longpolling redirection.
@ -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