Reverse proxy with url rewrites

Hi, using pydio cells 4.3.2.

Seemed to work great after initial setup (although cells configure site tries to get me to re-install?), I can’t get url re-write + reverse proxy working though.

Describe your issue in detail

I have a https :// domain dot com : 8083 on which cells is running fine, and I have a https :// domain dot com managed by an nginx instance. I have a location block which is proxy passing to the cells instance at https :// domain.com /files/, and even a re-write rule.

(apologies about the urls, forum url rules)

It does hit the cells endpoint, however the page (and hence browser) appears to try to use the base domain, not the proxied url. Is there a header or something I can set to make pydio cells base off a rewritten url?

What version of Cells are you using?

What is the server OS? Database name/version? Browser name or mobile device description (if issue appears client-side)?

Firefox + linux server, mariadb (10.5?)

What steps have you taken to resolve this issue already?

Tried following reverse proxy instructions in the docs.

I have:

location /files/ {
            # rewrite /files/(.*) /$1  break;
            proxy_redirect     off;
            proxy_set_header   Host $host;

            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-Proto $scheme;
            proxy_set_header X-Forwarded-Port $server_port;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Nginx-Proxy true;
            proxy_pass https://domain dot com:8083;
            proxy_ssl_server_name on;
        }

This half works but the page redirects after login, or gives me errors about logging in.

Hello @smaudet

Happy new year

Cells does not support /uri. It should work at the root / of the url.
You can use a sub-domain as a solution

@c12simple Thanks!

Yeah, that’s disappointing. Urls are just a bit more flexible and don’t require as much setup as a subdomain (think dns servers, ssl certificates, etc).

Stellar product, otherwise. Pydio fullfilled my (temporary) needs, but I might search to see what other solutions are capable of.

Is there any way to submit a feature request? Github mentions the forums for those. I think this would qualify as one.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.