Very slow sync and download speed from final client (AIO with docker and tailscale)

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 30.0.10
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu Server 24.04
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • Tailscale 1.82.5
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • on instalation
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • AIO on docker
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • Yes Tailscale

Summary of the issue you are facing:

I can download, upload and do everything pretty fast and responsive on the server but on my main computer I have Win11 and everything is just so slow. I used the tailscale with caddy configuration guide to set it up ( https://github.com/nextcloud/all-in-one/discussions/5439 ) and when I try to access to the webUI or download something from the webUI its really slow, with the desktop client also takes ages, I have some videos on the server about 2 - 5GB each and with the snap installation I never had any problems accessing them in the desktop client… Now i have to wait 10min to download an image file from the webUI

Docker Compose

Here i’ts my docker compose file:

services:
  nextcloud-aio-mastercontainer:
    image: ghcr.io/nextcloud-releases/all-in-one:latest
    init: true
    restart: always
    container_name: nextcloud-aio-mastercontainer # This line cannot be changed.
    volumes:
      - nextcloud_aio_mastercontainer:/mnt/docker-aio-config
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - type: bind
        source: /media/shiro/cbab7d65-bdb8-42a5-b994-1a8cc003ed28
        target: /schloss
    networks:
      - nextcloud-aio
    ports:
      - 0.0.0.0:8080:8080
    environment:
      APACHE_PORT: 11000
      APACHE_IP_BINDING: 127.0.0.1
      APACHE_BODY_LIMIT: 0
      PHP_UPLOAD_LIMIT: 64G
      PHP_MEMORY_LIMIT: 8G
      SKIP_DOMAIN_VALIDATION: true
      NEXTCLOUD_MOUNT: /media/shiro/cbab7d65-bdb8-42a5-b994-1a8cc003ed28

  tailscale:
    image: tailscale/tailscale:latest
    environment:
      TS_HOSTNAME: shiro-nextcloud # Enter the hostname for your tailnet
      TS_AUTH_KEY: 654654654654654654654654654654654 # OAuth client key recommended
      TS_EXTRA_ARGS: --advertise-tags=tag:nextcloud # Tags are required when using OAuth client
    init: true
    healthcheck:
      test: ["CMD-SHELL", "tailscale status --peers=false --json | grep '\"Online\": true'"]
      start_period: 10s
      interval: 5s
      timeout: 3s
      retries: 5
    restart: unless-stopped
    devices:
      - /dev/net/tun:/dev/net/tun
    volumes:
      - type: volume
        source: tailscale
        target: /var/lib/tailscale
      - type: volume
        source: tailscale_sock
        target: /tmp # Mounting the entire /tmp folder to access tailscale.sock
    cap_add:
      - NET_ADMIN
    networks:
      - nextcloud-aio

  caddy:
    build:
      context: .
      dockerfile: Caddy.Dockerfile
    depends_on:
      tailscale:
        condition: service_healthy
    restart: unless-stopped
    environment:
      NC_DOMAIN: shiro-nextcloud.tail7878.ts.net # Change this to your domain ending with .ts.net in the format {$TS_HOSTNAME}.{tailnetdomain}
    volumes:
      - type: bind
        source: ./Caddyfile
        target: /etc/caddy/Caddyfile
      - type: volume
        source: caddy_certs
        target: /certs
      - type: volume
        source: caddy_data
        target: /data
      - type: volume
        source: caddy_config
        target: /config
      - type: volume
        source: tailscale_sock
        target: /var/run/tailscale/ # Mount the volume for /var/run/tailscale/tailscale.sock
        read_only: true
    network_mode: service:tailscale
volumes:
  nextcloud_aio_mastercontainer:
    name: nextcloud_aio_mastercontainer # This line cannot be changed.
  caddy_certs:
  caddy_config:
  caddy_data:
  tailscale:
  tailscale_sock:


networks:
  nextcloud-aio:
    name: nextcloud-aio
    driver: bridge
    enable_ipv6: false
    driver_opts:
      com.docker.network.driver.mtu: "1280" # You can set this to 9001 etc. to use jumbo frames, but packets may be dropped.
      com.docker.network.bridge.host_binding_ipv4: "127.0.0.1" # Harden aio
      com.docker.network.bridge.enable_icc: "true"
      com.docker.network.bridge.default_bridge: "false"
      com.docker.network.bridge.enable_ip_masquerade: "true"

Nextcloud

Here i’ts my config.php file:

<?php
$CONFIG = array (
  'one-click-instance' => true,
  'one-click-instance.user-limit' => 100,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  '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,
    ),
  ),
  'check_data_directory_permissions' => false,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'nextcloud-aio-redis',
    'password' => '77777777777777',
    'port' => 6379,
  ),
  'overwritehost' => 'shiro-nextcloud.tail7878.ts.net',
  'overwriteprotocol' => 'https',
  'passwordsalt' => '777777777777',
  'secret' => '77777777777777777',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => 'shiro-nextcloud.tail7878.ts.net',
  ),
  'datadirectory' => '/mnt/ncdata',
  'dbtype' => 'pgsql',
  'version' => '30.0.10.1',
  'overwrite.cli.url' => 'https://shiro-nextcloud.tail7878.ts.net/',
  'dbname' => 'nextcloud_database',
  'dbhost' => 'nextcloud-aio-database:5432',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_nextcloud',
  'dbpassword' => '777777777777',
  'installed' => true,
  'instanceid' => 'oczz90ewjm3j',
  'maintenance' => false,
  'loglevel' => 2,
  'log_type' => 'file',
  'logfile' => '/var/www/html/data/nextcloud.log',
  'log_rotate_size' => 10485760,
  'log.condition' =>
  array (
    'apps' =>
    array (
      0 => 'admin_audit',
    ),
  ),
  'preview_max_x' => 2048,
  'preview_max_y' => 2048,
  'jpeg_quality' => 60,
  'enabledPreviewProviders' =>
array (
    1 => 'OC\\Preview\\Image',
    2 => 'OC\\Preview\\MarkDown',
    3 => 'OC\\Preview\\MP3',
    4 => 'OC\\Preview\\TXT',
    5 => 'OC\\Preview\\OpenDocument',
    6 => 'OC\\Preview\\Movie',
    7 => 'OC\\Preview\\Krita',
  ),
  'enable_previews' => true,
  'upgrade.disable-web' => true,
  'mail_smtpmode' => 'smtp',
  'trashbin_retention_obligation' => 'auto, 30',
  'versions_retention_obligation' => 'auto, 30',
  'activity_expire_days' => 30,
  'simpleSignUpLink.shown' => false,
  'share_folder' => '/Shared',
  'one-click-instance.link' => 'https://nextcloud.com/all-in-one/',
  'upgrade.cli-upgrade-link' => 'https://github.com/nextcloud/all-in-one/discussions/2726',
  'updatedirectory' => '/nc-updater',
  'maintenance_window_start' => 100,
  'allow_local_remote_servers' => true,
  'davstorage.request_timeout' => 3600,
  'documentation_url.server_logs' => 'https://github.com/nextcloud/all-in-one/discussions/5425',
  'htaccess.RewriteBase' => '/',
  'dbpersistent' => false,
  'auth.bruteforce.protection.enabled' => true,
  'ratelimit.protection.enabled' => true,
  'files_external_allow_create_new_local' => true,
  'trusted_proxies' =>
  array (
    0 => '127.0.0.1',
    1 => '::1',
    10 => '172.18.0.0/16',
  ),
);

Hi, i guess it would be best if you post this here: Tailscale (and Caddy as a sidecar) Reverse Proxy · nextcloud/all-in-one · Discussion #5439 · GitHub

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.