# SeaweedFS configuration
# Documentation: https://github.com/seaweedfs/seaweedfs/wiki
#
# This file overrides default values from seaweedfs.service.
# Uncomment and modify variables as needed.
#
# After changes: systemctl restart seaweedfs

# =============================================================================
# IMPORTANT: Global flags order
# =============================================================================
#
# Global flags (-v, -logdir, etc.) must be added to SEAWEEDFS_GLOBAL_OPTS
# and will be placed BEFORE the "server" command.
#
# Example: SEAWEEDFS_GLOBAL_OPTS="-v=2 -logdir=/var/log/seaweedfs"

# =============================================================================
# Main configuration
# =============================================================================

# Data directory for volumes and metadata
#SEAWEEDFS_DIR="/var/lib/seaweedfs"

# IP address to advertise to cluster (how other nodes find this server)
SEAWEEDFS_IP="127.0.0.1"

# IP address to bind/listen on (use 0.0.0.0 for all interfaces)
SEAWEEDFS_BIND_IP="127.0.0.1"

# Extra options for "weed server" command
# Common flags: -filer, -s3, -webdav, -sftp, -volume.port=8080, -metricsPort=9324
SEAWEEDFS_EXTRA_OPTS="-filer -s3"

# Global options (placed BEFORE "server" command)
# Common flags: -v=0..4, -logdir=/path, -logtostderr
#SEAWEEDFS_GLOBAL_OPTS=""

# =============================================================================
# Available flags for SEAWEEDFS_EXTRA_OPTS:
# =============================================================================
#
# Features:
#   -filer                  Enable Filer (file system)
#   -s3                     Enable S3 gateway (auto-enables -filer)
#   -webdav                 Enable WebDAV (auto-enables -filer)
#   -sftp                   Enable SFTP server (auto-enables -filer)
#
# Ports (if defaults are busy):
#   -master.port=9333       Master server port
#   -volume.port=8080       Volume server port
#   -filer.port=8888        Filer port
#   -s3.port=8333           S3 gateway port
#   -webdav.port=7333       WebDAV port
#   -metricsPort=9324       Prometheus metrics port
#
# Storage:
#   -volume.max=8           Maximum number of volumes (0 = auto)
#   -master.volumeSizeLimitMB=30000   Volume size limit in MB
#
# Replication:
#   -master.defaultReplication=000   Replication strategy
#       000 = no replication
#       001 = replicate once on same rack
#       010 = replicate once on different rack
#       100 = replicate once on different data center
#
# =============================================================================
# Examples:
# =============================================================================
#
# S3 storage on localhost:
#   SEAWEEDFS_EXTRA_OPTS="-filer -s3"
#
# Custom volume port:
#   SEAWEEDFS_EXTRA_OPTS="-filer -s3 -volume.port=8180"
#
# Full stack with WebDAV:
#   SEAWEEDFS_EXTRA_OPTS="-filer -s3 -webdav"
#
# With Prometheus metrics:
#   SEAWEEDFS_EXTRA_OPTS="-filer -s3 -metricsPort=9324"
#
# Network-accessible server:
#   SEAWEEDFS_IP="192.168.1.100"
#   SEAWEEDFS_BIND_IP="0.0.0.0"
#   SEAWEEDFS_EXTRA_OPTS="-filer -s3"
#
# Debug logging:
#   SEAWEEDFS_GLOBAL_OPTS="-v=2"
#   SEAWEEDFS_EXTRA_OPTS="-filer -s3"
