Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ARM64 Armbian Collabora & Nextcloud -> nginx/caddy proxy for Local Domains on NanoPi R4S

Featured Replies

Hi Everybody,

I'm trying to set up Nextcloud with Collabora Office on NanoPi R4S running Armbian, but I'm having trouble configuring the reverse proxy (nginx/Caddy) for HTTPS with local domains.
Current Setup:

    Running via docker-compose.yml (shown below)

    Without HTTPS, everything works: Collabora can open documents in Nextcloud's web UI

    With HTTPS enabled, Collabora integration breaks

    Added to /etc/hosts:

    127.0.0.1 nextcloud.lan collabora.nextcloud.lan

What I Need:

    HTTPS configuration for both services

    Reverse proxy to local domains:

        Nextcloud: https://nextcloud.lan

        Collabora: https://collabora.nextcloud.lan

My docker-compose.yml (HTTP-only version):

networks:
  network:
    driver: bridge
 

volumes:
  mariadb_config:
  mariadb_data:
  nextcloud_config:
  nextcloud_data:


services:
  collabora:
    image: collabora/code
    restart: unless-stopped
    container_name: collabora
    hostname: collabora
    domainname: collabora.nextcloud.lan
    networks:
      - network
    ports:
      - "9980:9980"
    cap_add:
      - MKNOD

  nextcloud_db:
    image: linuxserver/mariadb
    restart: unless-stopped
    container_name: nextcloud_db
    hostname: nextcloud_db
    networks:
      - network
    volumes:
      - mariadb_config:/config
      - mariadb_data:/data
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=UTC
      - MYSQL_ROOT_PASSWORD=nextcloud
      - MYSQL_DATABASE=nextcloud_db
      - MYSQL_USER=nextcloud
      - MYSQL_PASSWORD=nextcloud


  nextcloud:
    image: linuxserver/nextcloud
    restart: unless-stopped
    depends_on:
      - nextcloud_db
      - collabora
    container_name: nextcloud
    hostname: nextcloud
    domainname: nextcloud.lan
    networks:
      - network
    ports:
      - "8080:80"
    volumes:
      - nextcloud_config:/config
      - nextcloud_data:/data
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=UTC
      - NEXTCLOUD_UPLOAD_LIMIT=16G
      - NEXTCLOUD_MAX_TIME=3600
      - NEXTCLOUD_MEMORY_LIMIT=3G
      - SKIP_DOMAIN_VALIDATION=true
      - NEXTCLOUD_TRUSTED_DOMAINS=nextcloud.lan


Key Questions:

    How should I modify the docker-compose.yml to:

        Enable HTTPS for both services?

        Properly configure the reverse proxy for the local domains?

        Set up valid SSL certificates for *.lan domains?

    For Collabora:

        What extra_params or environment variables are needed for HTTPS?

        How to configure Nextcloud's config.php for the Collabora HTTPS endpoint?

I'd prefer a solution using Caddy if possible, as it's simpler for automatic HTTPS. Any working configuration examples would be greatly appreciated!

Thanks in advance for your help!

Viktor Malygin
WordPress Developer

Edited by Werner
Remove advertisment

  • Werner changed the title to ARM64 Armbian Collabora & Nextcloud -> nginx/caddy proxy for Local Domains on NanoPi R4S

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.