Hi All!
I got Letsencrypt installed and nextcloud setup. I have the LetsEncrypt Nginx running in docker on another server and I want it to do reverse proxy to the file server that has nextcloud running on it. I setup the proxy configs with the sample file on the LetsEncrypt container and added the required lines to the nextcloud config.php suggested in the sample proxy. However, when I try to go to my domain name I get refused to connect. I'm sure it's something misconfigured in the reverse proxy that I am not aware of, being new to reverse proxies and nginx.
Code
# make sure that your dns has a cname set for nextcloud
# assuming this container is called "letsencrypt", edit your nextcloud container's config
# located at /config/www/nextcloud/config/config.php and add the following lines before the ");":
# 'trusted_proxies' => ['letsencrypt'],
# 'overwrite.cli.url' => 'https://nextcloud.your-domain.com/',
# 'overwritehost' => 'nextcloud.your-domain.com',
# 'overwriteprotocol' => 'https',
#
# Also don't forget to add your domain name to the trusted domains array. It should look somewhat like thi>
# array (
# 0 => '192.168.0.1:444', # This line may look different on your setup, don't modify it.
# 1 => 'nextcloud.your-domain.com',
# ),
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name cloud.silverfishdevelopment.com;
include /config/nginx/ssl.conf;
client_max_body_size 0;
location / {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app blackbox;
set $upstream_port 32773;
set $upstream_proto https;
proxy_pass https://192.168.1.4:32773;
proxy_max_temp_file_size 2048m;
}
}
Alles anzeigen
Any help would be much appreciated.