Configuration
Configuration
3.1 Repository Server Configuration
yaml
Copy
# /etc/netpack/server.yaml
server:
host: 0.0.0.0
port: 8080
workers: 4
database:
host: localhost
port: 5432
name: netpack
user: netpack
password: "your-secure-password"
redis:
host: localhost
port: 6379
rabbitmq:
url: amqp://localhost:5672
storage:
type: s3 # or local
path: /var/lib/netpack/packages
backup_path: /var/lib/netpack/backups
3.2 Distribution Node Configuration
yaml
Copy
# /etc/netpack/node.yaml
node:
id: node1
region: us-east
capacity: 500GB
repository:
url: https://repo.example.com
auth_token: "your-node-token"
cache:
path: /var/cache/netpack
max_size: 400GB
cleanup_interval: 24h