Skip to content

Install and Configure ONLYOFFICE Docs for Nextcloud - Adjustments for using IPv6 only #1366

@divinus41

Description

@divinus41

Problem

If you rent a server without a public IPv4 address and therefore have only a public IPv6 address available, issuing a Let’s Encrypt certificate for HTTPS often fails. As a result, OnlyOffice is not accessible via HTTPS.

To make the OnlyOffice Docker container accessible via HTTPS exclusively through the public IPv6 address, some additional steps are required, which I have outlined below.

Suggested Fix

Execute these steps before Step 3.

Create the Docker configuration

nano /etc/docker/daemon.json

Configure IPv6 using the Google IPv6 DNS servers

{
    "dns": ["2001:4860:4860::8888", "2001:4860:4860::8844"],
    "ipv6": true,
    "fixed-cidr-v6": "fd00::/80"
}

Then continue with Step 3

docker run -i -t -d -p 80:80 -p 443:443 \
    --restart=always \
    --name onlyoffice-documentserver \
    -e LETS_ENCRYPT_DOMAIN=office.example.com \
    -e LETS_ENCRYPT_MAIL=email@example.com \
    onlyoffice/documentserver

Note

If you want to use a different public DNS resolver over IPv6 (like Cloudflare), you can of course do so. To the best of my knowledge, Hetzner does not currently provide its own public IPv6 DNS resolvers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions