Hi,
I would really appreciate some help as Im noob in this and stuck on last setup of this system.
I have a synology NAS running docker. In there I have loaded container nextcloud and letsencrypt from linuxserver.
Nextcloud is up and running. Letsencrypt is done as well, it verifies and everything checks out there.
I just need to set up nginx to complete it. Im planning to run this locally so not exposing anything on WAN. Im gonna VPN inside my network if I need anything. In docker all containers are shared by a bridge so they should be able to reach eachother.
So its just setting up the nginx and pointing the subdomains to different services.
I have messed around with the templates in the proxy-conf folder, however the explanations are not that noobfriendly and I dont really know what to edit. Ive tried some different things but nothing works.
This is how a template looks like for nextcloud that Im trying to setup:
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name nextcloud.*;
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_nextcloud nextcloud;
proxy_max_temp_file_size 2048m;
proxy_pass upstreamlink(edited cus cant post links as new user):443;
}
}
Here is the nextcloud config.php template:
$CONFIG = array (
‘memcache.local’ => ‘\OC\Memcache\APCu’,
‘datadirectory’ => ‘/data’,
‘instanceid’ => ‘ocvnqpmbw1xc’,
‘passwordsalt’ => ‘xmTzEfr0JsudRQCUH3SfC2Wkw2g’,
‘secret’ => ‘jzt9gotkOa1fiHIllqkcMCOozu78bV8UPgxPrXGX6O’,
‘trusted_domains’ =>
array (
0 => ‘192.168.1.12:x’,
),
‘dbtype’ => ‘mysql’,
‘version’ => ‘16.0.3.0’,
‘overwrite.cli.url’ => ‘edited cus cant post links as new user)192.168.1.12:x’,
‘dbname’ => ‘MariaDatabase’,
‘dbhost’ => ‘192.168.1.12:x’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘mysql.utf8mb4’ => true,
‘dbuser’ => ‘MariaDB’,
‘dbpassword’ => ‘PASS’,
‘installed’ => true,
);
So what do I change here? My nextcloud container is set to custom port 9000 and letsencrypt on 9001 in docker settings. Oh and also I have edited a dnsmasq file on my pi-hole to point to my NAS with the containers. However it cant seem to point to a specific port, only directly to my NAS. And there since my letsencrypt container is running on a customport (cant use 443/80 - says they are not availible), when I go to mysubdomain.com in browser - Im pointed to the synology loginpage. That would be good to change somehow also I suppose… So I dont need to type like mysubdomain.com:PORTS each time…
I have also tried some changes in the nextcloud php file according to the guide… But yeah not getting it right at all…
Thank you all for any help… Been at this problem for 3 days… Wrote on reddit and the irc but not gotten the help I need…