Hello,
Thank you all for your tips,
the command curl -v http : / / r3.o.lencr.org
run into the proxy container returned
415d15ba82dd:/app# curl -v http: / / r3.o.lencr . org
- Trying 96.17.206.24:80…
- Connected to r3.o.lencr . org (96.17.206.24) port 80 (#0)
GET / HTTP/1.1
Host: r3.o.lencr . org
User-Agent: curl/7.87.0
Accept: /
- Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Server: nginx
< Content-Length: 0
< Cache-Control: max-age=11999
< Expires: Thu, 30 Mar 2023 12:25:39 GMT
< Date: Thu, 30 Mar 2023 09:05:40 GMT
< Connection: keep-alive
<
- Connection #0 to host r3.o.lencr . org left intact
Which seems to indicate that my problem doesn’t come from this.
The nextcloud app container is running and last logs of it indicate
AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 172.19.0.5. Set the ‘ServerName’ directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 172.19.0.5. Set the ‘ServerName’ directive globally to suppress this message
[Thu Mar 30 11:19:25.675665 2023] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.56 (Debian) PHP/8.1.17 configured – resuming normal operations
[Thu Mar 30 11:19:25.675788 2023] [core:notice] [pid 1] AH00094: Command line: ‘apache2 -D FOREGROUND’
172.19.0.2 - - [30/Mar/2023:11:20:56 +0200] “GET / HTTP/1.1” 400 484 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/111.0”
I can’t figure out if those are relevant errors or just warnings…
Nextcloud version 25.0.3
Operating system and version Ubuntu 18.04:
Here’s my config.php
<?php
$CONFIG = array (
‘htaccess.RewriteBase’ => ‘/’,
‘memcache.local’ => ‘\OC\Memcache\APCu’,
‘defaultapp’ => ‘apporder’,
‘apps_paths’ =>
array (
0 =>
array (
‘path’ => ‘/var/www/html/apps’,
‘url’ => ‘/apps’,
‘writable’ => false,
),
1 =>
array (
‘path’ => ‘/var/www/html/custom_apps’,
‘url’ => ‘/custom_apps’,
‘writable’ => true,
),
),
‘instanceid’ => ‘xxxxxx’,
‘passwordsalt’ => ‘xxxxxxxxxx’,
‘secret’ => ‘xxxxxxxxxx’,
‘trusted_domains’ =>
array (
0 => ‘my.domain. fr,
),
‘trusted_proxies’ =>
array (
0 => ‘172.19.0.4’,
1 => ‘172.19.0.3’,
2 => ‘172.19.0.5’,
3 => ‘172.19.0.2’,
),
‘datadirectory’ => ‘/var/www/html/data’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘25.0.3.2’,
‘overwrite.cli.url’ => ‘http : / / my.domain. fr’,
‘overwriteprotocol’ => ‘https’,
‘dbname’ => ‘nextcloud’,
‘dbhost’ => ‘db’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘mysql.utf8mb4’ => true,
‘dbuser’ => ‘user’,
‘dbpassword’ => ‘xxxxxx’,
‘installed’ => true,
‘mail_from_address’ => ‘me’,
‘mail_smtpmode’ => ‘smtp’,
‘mail_sendmailmode’ => ‘smtp’,
‘mail_domain’ => ‘my.domain . fr’,
‘mail_smtphost’ => ‘my.domain . fr’,
‘mail_smtpauthtype’ => ‘LOGIN’,
‘mail_smtpsecure’ => ‘ssl’,
‘mail_smtpauth’ => 1,
‘mail_smtpname’ => ‘me@my.domain.fr’,
‘mail_smtppassword’ => ‘xxxxxx’,
‘mail_smtpport’ => ‘465’,
‘maintenance’ => true,
‘loglevel’ => 0,
‘app_install_overwrite’ =>
array (
0 => ‘richdocuments’,
1 => ‘richdocumentscode’,
),
‘theme’ => ‘’,
‘default_phone_region’ => ‘FR’,
‘default_language’ => ‘fr’,
‘default_locale’ => ‘fr_FR’,
);
and my docker-compose.yml file
version: ‘3’
services:
proxy:
image: jwilder/nginx-proxy:alpine
logging:
options:
max-size: “10m”
max-file: “3”
labels:
- ‘com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy’
container_name: nextcloud-proxy
networks:
- nextcloud_network
ports:
- 80:80
- 443:443
volumes:
- ./proxy/conf.d:/etc/nginx/conf.d:rw
- ./proxy/vhost.d:/etc/nginx/vhost.d:rw
- ./proxy/html:/usr/share/nginx/html:rw
- ./proxy/certs:/etc/nginx/certs:ro
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
environment:
- VIRTUAL_HOST=my.domain. fr
- LETSENCRYPT_HOST=my.domain. fr
- LETSENCRYPT_EMAIL=me@my.domain. fr
restart: unless-stopped
letsencrypt:
image: nginxproxy/acme-companion
container_name: nextcloud-letsencrypt
depends_on:
- proxy
networks:
- nextcloud_network
environment:
- DEFAULT_EMAIL=me@my.domain.fr
- NGINX_PROXY_CONTAINER=‘nextcloud-proxy’
volumes:
- ./proxy/conf.d:/etc/nginx/conf.d:rw
- ./proxy/certs:/etc/nginx/certs:rw
- ./proxy/vhost.d:/etc/nginx/vhost.d:rw
- ./proxy/html:/usr/share/nginx/html:rw
- acme:/etc/acme.sh
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
restart: unless-stopped
db:
image: mariadb
container_name: nextcloud-mariadb
networks:
- nextcloud_network
volumes:
- db:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
environment:
- MYSQL_ROOT_PASSWORD=xxxxxx
- MYSQL_PASSWORD=Lot=xxxxxxx
- MYSQL_DATABASE=nextclouddb
- MYSQL_USER=nextclouduser
restart: unless-stopped
app:
image: nextcloud:latest
container_name: nextcloud-app
networks:
- nextcloud_network
depends_on:
- letsencrypt
- proxy
- db
volumes:
- nextcloud:/var/www/html
- ./app/config:/var/www/html/config
- ./app/custom_apps:/var/www/html/custom_apps
- ./app/data:/var/www/html/data
- ./app/themes:/var/www/html/themes
- /etc/localtime:/etc/localtime:ro
environment:
- VIRTUAL_HOST=my.domain. fr
- LETSENCRYPT_HOST=my.domain. fr
- LETSENCRYPT_EMAIL=me@my.domain. fr
restart: unless-stopped
volumes:
nextcloud:
db:
acme:
As I tried to fix the config files I’m pretty sure there are some errors in those that you guys can spot in a second…
Again, thanks and have a good day !