So I am following Easy Nextcloud Install in 6 Minutes with Stacks! video (
Externer Inhalt
youtu.be
Inhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.
Durch die Aktivierung der externen Inhalte erklären Sie sich damit einverstanden, dass personenbezogene Daten an Drittplattformen übermittelt werden. Mehr Informationen dazu haben wir in unserer Datenschutzerklärung zur Verfügung gestellt.
1. I have created stack and installed nextcloud, letsencrypt and mariadb
2. I have changed nextcloud.subdomain.conf.sample => nextcloud.subdomain.conf
3. edit ngix\site-confs\default
and when I typed https://nextcloud.mydomain.duckdns.org
it didn't worked.
so I did portfowarding 443 =>443
and then it says
Welcome to our server
The website is currently being setup under this address.
So I googled for few hours and edited nextcloud.subdomain.conf, and nextcloud's config.php
PHP
<?php
$CONFIG = array (
'memcache.local' => '\OC\Memcache\APCu',
'datadirectory' => '/data',
'trusted_domains' =>
array (
0 => '192.168.0.3:443',
1 => 'nextcloud.mydomainexample.duckdns.org',
),
'trusted_proxies' => ['letsencrypt'],
'overwrite.cli.url' => 'https://nextcloud.mydomainexample.duckdns.org/',
'overwritehost' => 'nextcloud.mydomainexample.duckdns.org',
'overwriteprotocol' => 'https',
);
Alles anzeigen
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 this:
# 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 nextcloud.mydomainexample.duckdns.org;
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 nextcloud;
set $upstream_port 443;
set $upstream_proto https;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
set $upstream_nextcloud 192.168.0.3;
proxy_max_temp_file_size 2048m;
}
}
Alles anzeigen
And still saying welcome to our server......
I'll be thankful for any suggestions.