Hi
I have problems getting my reverse proxy for Nextcloud in docker to work.
I use lsioarmhf/nextcloud image and Nginx plugin to set up my reverse proxy
Me reverse proxy setup is:
Code
location / {
# Send traffic to the backend
proxy_pass http://127.0.0.1:port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-for $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $remote_addr;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_redirect off;
# Send websocket data to the backend aswell
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
Alles anzeigen
I have used the same Nginx reverse proxy setup for my other services and they all work.
My Nextcloud config.php setup is:
PHP
<?php
$CONFIG = array (
'memcache.local' => '\\OC\\Memcache\\APCu',
'datadirectory' => '/data',
'instanceid' => 'xxx',
'passwordsalt' => 'xxx',
'secret' => 'xxx',
'trusted_domains' =>
array (
0 => 'xxx.myserver.com',
1 => 'localhost',
2 => '127.0.0.1',
),
'overwrite.cli.url' => 'https://xxx.myserver.com',
'overwritehost => 'xxx.myserver.com',
'overwriteprotocol' => 'https',
'trusted_proxies' =>
array (
0 => '127.0.0.1',
),
'dbtype' => 'mysql',
'version' => '14.0.0.19',
'dbname' => 'xxx',
'dbhost' => '127.0.0.1:port',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'xxx',
'dbpassword' => 'xxx',
'installed' => true,
'mail_from_address' => 'xxx',
'mail_smtpmode' => 'smtp',
'mail_smtpauthtype' => 'LOGIN',
'mail_domain' => 'xxx',
'mail_smtpauth' => 1,
'mail_smtpsecure' => 'ssl',
'mail_smtphost' => 'xxx',
'mail_smtpport' => '465',
'mail_smtpname' => 'xxx@xxx',
'mail_smtppassword' => 'xxx',
);
Alles anzeigen
When I try to use https://xxx.myserver.com to reach Nextcloud it doesn't work (I get an adress response from Firefox of "https://_/"...?) I suspect that Nextcloud can't reach http but I can't figure out how to enable http access in Nextcloud (if that is the problem).
After many hours of googling and trying alot of different setups in config.php I'm at the end of my road.
I would be very grateful if anybody could help me with this. Thank you