Replace the hierarchical single-mount design with independent mounts: each [[shares]] entry is a (name, remote_path, mount_point) triplet with its own rclone FUSE mount process and dedicated RC API port (5572 + index). Remove top-level connection.remote_path and [mount] section. Auto-warmup now runs in a background thread to avoid blocking the supervision loop. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
110 lines
2.7 KiB
Plaintext
110 lines
2.7 KiB
Plaintext
# Warpgate Configuration
|
|
# See: https://github.com/user/warpgate for documentation
|
|
|
|
[connection]
|
|
# Remote NAS Tailscale IP or hostname
|
|
nas_host = "100.x.x.x"
|
|
# SFTP username
|
|
nas_user = "admin"
|
|
# SFTP password (prefer key_file for security)
|
|
# nas_pass = "your-password"
|
|
# Path to SSH private key (recommended)
|
|
# nas_key_file = "/root/.ssh/id_ed25519"
|
|
# SFTP port
|
|
sftp_port = 22
|
|
# SFTP connection pool size
|
|
sftp_connections = 8
|
|
|
|
[cache]
|
|
# Cache storage directory (should be on SSD, prefer btrfs/ZFS filesystem)
|
|
dir = "/mnt/ssd/warpgate"
|
|
# Max cache size (leave room for dirty files during offline writes)
|
|
max_size = "200G"
|
|
# Max cache retention time
|
|
max_age = "720h"
|
|
# Minimum free space on cache disk
|
|
min_free = "10G"
|
|
|
|
[read]
|
|
# Chunk size for large file reads
|
|
chunk_size = "256M"
|
|
# Max chunk auto-growth limit
|
|
chunk_limit = "1G"
|
|
# Read-ahead buffer for sequential reads
|
|
read_ahead = "512M"
|
|
# In-memory buffer size
|
|
buffer_size = "256M"
|
|
|
|
[bandwidth]
|
|
# Upload (write-back) speed limit ("0" = unlimited)
|
|
limit_up = "0"
|
|
# Download (cache pull) speed limit ("0" = unlimited)
|
|
limit_down = "0"
|
|
# Enable adaptive write-back throttling (auto-reduce on congestion)
|
|
adaptive = true
|
|
|
|
[writeback]
|
|
# Delay before async write-back to NAS
|
|
write_back = "5s"
|
|
# Concurrent upload transfers
|
|
transfers = 4
|
|
|
|
[directory_cache]
|
|
# Directory listing cache TTL (lower = faster remote change detection)
|
|
cache_time = "1h"
|
|
|
|
[protocols]
|
|
# Enable SMB (Samba) sharing — primary for macOS/Windows
|
|
enable_smb = true
|
|
# Enable NFS export — for Linux clients
|
|
enable_nfs = false
|
|
# Enable WebDAV service — for mobile clients
|
|
enable_webdav = false
|
|
# NFS allowed network CIDR
|
|
nfs_allowed_network = "192.168.0.0/24"
|
|
# WebDAV listen port
|
|
webdav_port = 8080
|
|
|
|
# --- Optional: SMB user authentication ---
|
|
# By default, SMB shares use guest access (no password).
|
|
# Enable smb_auth for password-protected access.
|
|
#
|
|
# [smb_auth]
|
|
# enabled = true
|
|
# username = "photographer" # defaults to connection.nas_user
|
|
# smb_pass = "my-password" # option 1: dedicated password
|
|
# reuse_nas_pass = true # option 2: reuse connection.nas_pass
|
|
|
|
# --- Shares ---
|
|
# Each share maps a remote NAS path to a local mount point.
|
|
# Each gets its own rclone mount process with independent FUSE mount.
|
|
|
|
[[shares]]
|
|
name = "photos"
|
|
remote_path = "/volume1/photos"
|
|
mount_point = "/mnt/photos"
|
|
|
|
# [[shares]]
|
|
# name = "projects"
|
|
# remote_path = "/volume1/projects"
|
|
# mount_point = "/mnt/projects"
|
|
#
|
|
# [[shares]]
|
|
# name = "backups"
|
|
# remote_path = "/volume1/backups"
|
|
# mount_point = "/mnt/backups"
|
|
# read_only = true
|
|
|
|
[warmup]
|
|
# Auto-warmup configured paths on startup
|
|
auto = true
|
|
|
|
# [[warmup.rules]]
|
|
# share = "photos"
|
|
# path = "2024"
|
|
# newer_than = "30d"
|
|
#
|
|
# [[warmup.rules]]
|
|
# share = "photos"
|
|
# path = "Lightroom/Catalog"
|