Help with "web server serves `.well-known`" using Portainer

I installed Nextcloud AIO through Portainer following this video Nextcloud AIO Installation. I use Nginx Proxy Manager, so Nextcloud is using port 444, but I continue to get this issue:

  • Could not check that your web server serves .well-known correctly. Please check manually. To allow this check to run, you have to make sure that your web server can connect to itself. Therefore, it must be able to resolve and connect to at least one of its trusted_domains or the overwrite.cli.url. This failure may be the result of a server-side DNS mismatch or outbound firewall rule. For more details, see the documentation :arrow_upper_right:.

I already asked on Reddit and have been asking ChatGPT non-stop.

Here are my file configurations:

/nextcloud_data/config/www/nextcloud/config.php

php

Copy code

<?php
$CONFIG = array (
  'datadirectory' => '/data',
  'instanceid' => 'REDACTED',
  'passwordsalt' => 'REDACTED',
  'secret' => 'REDACTED',
  'trusted_domains' =>
  array (
    0 => 'REDACTED_IP:444',
    1 => 'REDACTED_DOMAIN',
  ),
  'dbtype' => 'mysql',
  'version' => '30.0.0.14',
  'overwrite.cli.url' => 'https://REDACTED_IP:444',
  'dbname' => 'nextcloud',
  'dbhost' => 'REDACTED_IP:3307',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'REDACTED',
  'dbpassword' => 'REDACTED',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\\Memcache\\APCu',
  'upgrade.disable-web' => true,
  'memories.exiftool' => '/config/www/nextcloud/apps/memories/bin-ext/exiftool-amd64-musl',
  'memories.vod.path' => '/config/www/nextcloud/apps/memories/bin-ext/go-vod-amd64',
  'memories.vod.ffmpeg' => '/usr/bin/ffmpeg',
  'memories.vod.ffprobe' => '/usr/bin/ffprobe',
  'maintenance_window_start' => 1,
  'maintenance' => false,
  'mail_smtpmode' => 'smtp',
  'mail_smtpauth' => 1,
  'mail_sendmailmode' => 'smtp',
  'mail_smtphost' => 'smtp.gmail.com',
  'mail_from_address' => 'REDACTED',
  'mail_domain' => 'gmail.com',
  'mail_smtpport' => '465',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpname' => 'REDACTED',
  'mail_smtppassword' => 'REDACTED',
  'default_phone_region' => 'US',
);

/etc/nginx/sites-available/nextcloud

nginx

Copy code

server {
    listen 8080;
    server_name localhost;

    root /var/www/nextcloud;  # Ensure this points to your Nextcloud installation
    index index.php index.html index.htm;

    location / {
        rewrite ^ /index.php$request_uri;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/var/run/php/php-fpm.sock;  # Adjust PHP version if necessary
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }

    location ~ /\.ht {
        deny all;
    }
}

Welcome to the community, and thank you for your first post.

Please check, if adding these routes to NGINX Proxy will solve the issue. I used these examples for my own setup: https://raw.githubusercontent.com/nextcloud/docker/refs/heads/master/.examples/docker-compose/insecure/mariadb/fpm/web/nginx.conf