Closed yogo1212 closed 2 years ago
i managed to get a bit closer myself:
<group>
<host desc="hostname to allow or deny." allow="true">http://cloud\\.the\\.domain:80</host>
</group>
should that still be regex-escaped? how about the slashes? looking for the code that generates that now.
while digging through the code of start-collabora-online
, i noticed two things:
extra_params=--o:ssl.enable=false --o:ssl.termination=true
.
domain
is used together with these settings to produce an entry with https
.
the wrong port (80 vs. 443) is added for consistency :grin: 'domain=cloud\\.upsii\\.de'
anyone sees it?
the double-backslash imperative assumes double-quoted shell expansion. single quotes don't mangle backslashes. i wouldn't recommend double-quotes to build regexes :-)
so, i ended up with:
-e 'aliasgroup1=https://cloud\.the\.domain:443'
EDIT: forgot the most important thing: it works like that! here's to hoping that people with a similar problem will find this issue :beers:
Describe the bug
CODE blocks requests from the host specified in the
domain
env variable. Real domain redacted. Nextcloud works normally undercloud.the.domain
and CODE serves "OK" underoffice.the.domain
.To Reproduce Steps to reproduce the behavior:
Expected behavior An editor opens.
Actual behavior A white page showing an error message and a 'Close' button pops up.
Because it's a nice page, it doesn't allow selecting text so I have to remember and type:
Failed to load Nextcloud Office - please try again later.
Desktop (please complete the following information)
Additional context Nextcloud and CODE are hosted on the same machine using docker. Nginx terminates SSL for both.