Hello everyone,
I have a problem with the installation of the letsecnrypt docker, nextcloud and duckdns.
Nextcloud works perfectly alone, but what I put the docker letsencrypte according to TechnoDad's tutorial, it does not work.
Here is my installation:
root@OMV4-serveur:~# docker logs -f letsencrypt
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing...
-------------------------------------
_ ()
| | ___ _ __
| | / __| | | / \
| | \__ \ | | | () |
|_| |___/ |_| \__/
Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------
User uid: 1000
User gid: 100
-------------------------------------
[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing...
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing...
using keys found in /config/keys
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 50-config: executing...
Variables set:
PUID=1000
PGID=100
TZ=Europe/Zurich
URL=duckdns.org
SUBDOMAINS=darknesse
EXTRA_DOMAINS=
ONLY_SUBDOMAINS=true
DHLEVEL=1024
VALIDATION=http
DNSPLUGIN=
EMAIL=XXXXXXXXXXXXXXXXXXX
STAGING=
1024 bit DH parameters present
SUBDOMAINS entered, processing
SUBDOMAINS entered, processing
Only subdomains, no URL in cert
Sub-domains processed are: -d darknesse.duckdns.org
E-mail address entered: darknessedesign@gmail.com
http validation is selected
Different validation parameters entered than what was used before. Revoking and deleting existing certificate, and an updated one will be created
Saving debug log to /var/log/letsencrypt/letsencrypt.log
No match found for cert-path /config/etc/letsencrypt/live/nextcloud.darknesse.duckdns.org/fullchain.pem!
Generating new certificate
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for darknesse.duckdns.org
Waiting for verification...
Cleaning up challenges
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/darknesse.duckdns.org/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/darknesse.duckdns.org/privkey.pem
Your cert will expire on 2019-05-08. To obtain a new or tweaked
version of this certificate in the future, simply run certbot
again. To non-interactively renew *all* of your certificates, run
"certbot renew"
- Your account credentials have been saved in your Certbot
configuration directory at /etc/letsencrypt. You should make a
secure backup of this folder now. This configuration directory will
also contain certificates and private keys obtained by Certbot so
making regular backups of this folder is ideal.
- If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
New certificate generated; starting nginx
[cont-init.d] 50-config: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Server ready
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] syncing disks.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
Alles anzeigen
My php file always goes back to the original as soon as I restart the docker letsencrypt, I change the nextcloud. * In darkness * it always comes back in nextcloud. *
# 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.*;
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 https://$upstream_nextcloud:443;
}
}
Alles anzeigen
config-php
<?php
$CONFIG = array (
'memcache.local' => '\\OC\\Memcache\\APCu',
'datadirectory' => '/data',
'instanceid' => 'ocsb6o1wf3zf',
'passwordsalt' => '+TWoiuK+9filSte1SDRchaP+Adbfco',
'secret' => 'cvZoGUUgshXRRpNN0YyvmlvdCjcqIx+hy6g+CfpdGX30fPR2',
'trusted_domains' =>
array (
0 => '192.168.0.20:444',
1 => 'darknesse.duckdns.org',
),
'overwrite.cli.url' => 'https://darknesse.duckdns.org',
'overwritehost' => 'darknesse.duckdns.org',
'overwriteprotocol' => 'https',
'dbtype' => 'mysql',
'version' => '15.0.2.0',
'dbname' => 'nextcloud',
'dbhost' => '192.168.0.20:33306',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'damien',
'dbpassword' => 'XXXXXXXXXX',
'installed' => true,
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
);
Alles anzeigen
when i go on the address "https://darknesse.duckdns.org" i still have the page.
Welcome to our server
The website is currently being setup under this address.
For help and support, please contact: me@example.com
Do you see any errors in my installation?
Because I peeled all the pages of the forum talking about these problems and I did not find anything.
I also tried the techniques of putting nextcloud.darknesse.duckdns.org in the php file but it did not change anything.Car I saw on the forum that it had worked for some people.
thank you to those who can help me, because it's been several days since I put my head with it.
Sorry for my English