/loolendpoint was changed ages ago to/cool(please follow the Collabora integration guide we referred already)- built-in CODE is supposed to live in
{cloud}/apps/richdocumentscode/proxy.php?req=and doesn’t require dedicated reverse proxy config. looks you are using kind of mix between both variants
from my experience dedicated CODE is easier to maintain, so if you can prefer this one over built-in CODE