collabora already works.
I did a lot of trying and changed different settings.
I can’t write which setting I changed to make it work.
The procedure is written in the first post.
Maybe the mistake was
sudo coolconfig set storage.wopi.host collabora.example.com
This is a link to the collabor server
However, the link must be on the nextcloud
sudo coolconfig set storage.wopi.host nextcloud.example.com
nice to hear! In my setup the collabora code server runs in a docker => here I set an envirionment variable in the compose file pointing to the NC domain:
environment:
- domain = mynextcloud.domain.org # enter your nextcloud domain here. remove if not using NC
- username = <uname> # enyer your collabora admin user name
- password = <superPassWd> # enter your collabora admin password
- "extra_params = --o:ssl.enable=false --o:ssl.termination=true"
yes I think that was it @gusto : ) because you want to use coolconfig to allow your other app (file sharing etc) to access it. So not the “Collabora server” but and in this case the “Nextcloud server”
Additional info:
man coolconfig
[...]
set
The set command changes an existing configuration setting in the config file. The <key> is the XPath expression of the config item in the config XML file (cool-
wsd.xml).
set <key> <value>
so that will add an additional host to coolwsd.xml :
<storage desc="Backend storage">
<filesystem allow="false" />
<wopi desc="Allow/deny wopi storage." allow="true">
<host desc="Regex pattern of hostname to allow or deny." allow="true">[will add here]</host
Hi @gusto I am working same as coolwsd not docker but i am loading collabora online on page load.
1- I am using an AWS ubuntu server
2- having domain legai.tech
3- it is SaaS based php application so any new customer has new subdomain like abc.legai.tech etc.
4- I have installed collabora online with coolwsd and that is ssl enabled and working fine for any subdomain
5- i am hitting this url to open my file in collabora
6- In this url i don’t know why i am setting up WOPISrc maybe for the endpoint.php
7- here is my complete storage block of XML
<storage desc="Backend storage">
<filesystem allow="false"/>
<wopi allow="true" desc="Allow/deny wopi storage.">
<max_file_size desc="Maximum document size in bytes to load. 0 for unlimited." type="uint">0</max_file_size>
<locking desc="Locking settings">
<refresh default="900" desc="How frequently we should re-acquire a lock with the storage server, in seconds (default 15 mins) or 0 for no refresh" type="int">900</refresh>
</locking>
<alias_groups desc="default mode is 'first' it allows only the first host when groups are not defined. set mode to 'groups' and define group to allow multiple host and its aliases>
<group>
<host allow="true" desc="hostname to allow or deny.">https://legai\.tech:443</host>
<host allow="true" desc="hostname to allow or deny.">https://legai\.tech/demo</host>
<alias desc="regex pattern of aliasname">https://\w+\.legai\.tech:443</alias>
</group>
<!-- If you need to use multiple wopi hosts, please change the mode to "groups" and
add the hosts below. If one host is accessible under multiple ip addresses
or names, add them as aliases. -->
<!--<group>
<host desc="hostname to allow or deny." allow="true">scheme://hostname:port</host>
<alias desc="regex pattern of aliasname">scheme://aliasname1:port</alias>
<alias desc="regex pattern of aliasname">scheme://aliasname2:port</alias>
</group>-->
<!-- More "group"s possible here -->
</alias_groups>
<host desc="Regex pattern of hostname to allow or deny." allow="true">https://legai.tech</host>
</wopi>
<ssl desc="SSL settings">
<as_scheme default="true" desc="When set we exclusively use the WOPI URI's scheme to enable SSL for storage" type="bool">true</as_scheme>
<enable desc="If as_scheme is false or not set, this can be set to force SSL encryption between storage and coolwsd. When empty this defaults to following the ssl.enable setting" >
<cert_file_path desc="Path to the cert file" relative="false"/>
<key_file_path desc="Path to the key file" relative="false"/>
<ca_file_path desc="Path to the ca file. If this is not empty, then SSL verification will be strict, otherwise cert of storage (WOPI-like host) will not be verified." relative="fa>
<cipher_list desc="List of OpenSSL ciphers to accept. If empty the defaults are used. These can be overridden only if absolutely needed."/>
</ssl>
</storage>