Docker nextcloud how to install a certificate

  • I have installed OMV 4 plug-ins mysql, nginx and in the nextcloud container docker.
    I have a domain name mysite.com, I received a certificate with the plugin letsencrypt.
    When accessing the site all is well.
    Configured nginx proxying to access nextcloud as follows


    Code
    location /nextcloud {
        proxy_headers_hash_max_size 512;
        proxy_set_header Host $ host;
        proxy_set_header X-Forwarded-Proto $ scheme;
        proxy_set_header X-Real-IP $ remote_addr;
        proxy_set_header X-Forwarded-For $ proxy_add_x_forwarded_for;
        add_header Front-End-Https on;
        proxy_pass https://192.168.10.108 °55/;
         }

    Added to configuration config for nextcloud:

    Code
    'overwrite.cli.url' => 'https://192.168.10.108:555',
    'overwriteprotocol' => 'https',
    'overwritewebroot' => '/nextcloud',

    The mysite.com/nextcloud link opens the login page with a certificate, but then when there are no files displayed in the nextcloud file, the folder does not work correctly.
    Please help me to install the certificate on the container with nextcloud.


    With this configuration, there is no access to the local address https://192.168.10.108:555
    How to configure for external access https://mysite.com/nextcloud and local access https://192.168.10.108:555 ?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!