Hi.
I’ve installed owncloud and used apache as a web server on a debian 11 with no problem.
But now I want to use it behind a NginX reverse proxy.
I’ve configured all but I have the error page “trusted domains”.
the reverse proxy is installed on the same server, so I’ve added on the config.php file : ‘trusted_proxies’ => array ([‘127.0.0.1’]),
What I’ve forgot ? Thanks in advance for your help.
I’ve found the solution.
This is my nginx file conf to access to owncloud in /etc/nginx/sites-available
upstream backend_cloud{
server 127.0.0.1:4443;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name cloud.blabla.fr;
ssl_certificate /etc/ssl/certs/cloud/5d60ac1a6c27228a.crt;
ssl_certificate_key /etc/ssl/certs/cloud/cloud.blabla.key;
ssl_protocols TLSv1.3 TLSv1.2;
location / {
proxy_pass https://backend_cloud;
}
}
To solve the problem I 've added in the conf.php in the section “trusted_domains”
“backend_cloud” like this
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'cloud.blabla.fr',
2 => 'backend_cloud',
),
1 Like
There is an other parameter to had in the conf.php.
'overwritehost' => 'cloud.blabla.fr',
If you don’t do that, the link generated when you want to upload a file shared in the cloud is wrong.