Kolab + Collabora?

Milan Petrovic petrovic.milan at gmail.com
Fri Sep 27 12:00:09 CEST 2019


Thanks, yes, it works now!

I made a mistake in Nginx configuration, the rewrite URL was done wrong.

For anyone with a similar problem, the working Nginx configuration for
Chwala + Collabora is this (this is for Kolab deployed entirely in same
domain, but the difference for the subdomains is minimal and obvious):

    location /chwala {
        index index.php;
        alias /usr/share/chwala/public_html;
        rewrite /chwala/api/wopi/(.*)$
/chwala/api/index.php?wopi=1&method=$1;
        rewrite /chwala/api/document/(.*)$
/chwala/api/index.php?method=document&id=$1;

        client_max_body_size 100M; # set maximum upload size

        # enable php
        location ~ .php$ {
            include fastcgi_params;
            fastcgi_param HTTPS on;
            fastcgi_pass
unix:/var/run/php-fpm/mail.ifi-experience.com_chwala.sock;
            fastcgi_param SCRIPT_FILENAME $request_filename;
            # Without this, PHPSESSION is replaced by webadmin-api
X-Session-Token
            fastcgi_param PHP_VALUE "session.auto_start=0
                session.use_cookies=0";
            fastcgi_pass_header X-Session-Token;
        }

Thanks again!

On Fri, Sep 27, 2019 at 7:01 AM Aleksander Machniak <machniak at kolabsys.com>
wrote:

> On 9/27/19 3:04 AM, Milan Petrovic wrote:
> > Sep 27 02:30:40 mail.mydomain.com <http://mail.mydomain.com>
> loolwsd[7108]:
> > wsd-07108-11171 2019-09-27 00:30:40.149310 [ docbroker_012 ] ERR
>  WOPI::CheckFileInfo
> > failed with 404 Not Found| wsd/Storage.cpp:495
>
> 404 suggests that it might be problem with chwala or nginx setup for
> chwala.
>
> > Sep 27 02:30:40 mail.mydomain.com <http://mail.mydomain.com>
> loolwsd[7108]:
> > wsd-07108-11171 2019-09-27 00:30:40.149471 [ docbroker_012 ] ERR  Failed
> to add session to
> > [/chwala/api/wopi/files/w-OEA7dCZ70b5mV7XW] with URI
> > [
> https://mail.mydomain.com/chwala/api/wopi/files/w-OEA7dCZ70b5mV7XW?access_token=qj9F61I8tA7PRPmsd0Vi5gIGTj&access_token_ttl=1569555038000&permission=edit
> ]:
>
> The url looks fine.
>
> --
> Aleksander Machniak
> Senior Software Engineer
> Kolab Systems AG: https://kolabsystems.com
> PGP: 19359DC1
> _______________________________________________
> users mailing list
> users at lists.kolab.org
> https://lists.kolab.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kolab.org/pipermail/users/attachments/20190927/5ebfa4fd/attachment.html>


More information about the users mailing list