-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.env.example
More file actions
67 lines (53 loc) · 2.21 KB
/
Copy path.env.example
File metadata and controls
67 lines (53 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# NetPulse Environment Configuration
# Copy this file to .env and update the values
# ==========================================
# Core Authentication
# ==========================================
# Redis Password (Required)
# Used for secure communication between Controller and Workers
NETPULSE_REDIS__PASSWORD=change_this_redis_password
# API Key (Required)
# Used to authenticate all REST API requests
NETPULSE_SERVER__API_KEY=change_this_api_key
# ==========================================
# Server Settings
# ==========================================
# Optional: External URL for downloads (e.g., http://your-ip:9000)
# Used for constructing file download links in API responses
# NETPULSE_SERVER__EXTERNAL_URL=http://localhost:9000
# Optional: Time Zone (e.g., Asia/Shanghai, UTC, America/New_York)
# Controls the timestamp formatting in API responses and logs
TZ=Asia/Shanghai
# Optional: Log Level (DEBUG, INFO, WARNING, ERROR)
NETPULSE_LOG__LEVEL=INFO
# ==========================================
# Credential Management (Vault)
# ==========================================
# Optional: Credential Provider (set enabled=true to use Vault)
NETPULSE_CREDENTIAL__ENABLED=false
NETPULSE_CREDENTIAL__NAME=vault_kv
# Optional: Vault KV v2 settings (token OR AppRole)
NETPULSE_CREDENTIAL__ADDR=http://vault:8200
NETPULSE_CREDENTIAL__ALLOWED_PATHS=kv/netpulse
NETPULSE_CREDENTIAL__VERIFY=false
NETPULSE_CREDENTIAL__CACHE_TTL=30
# Use one of the following auth methods
# A: Token-based authentication
# NETPULSE_VAULT_TOKEN=dev-root-token
# B: AppRole-based authentication
# NETPULSE_VAULT_ROLE_ID=
# NETPULSE_VAULT_SECRET_ID=
# ==========================================
# Audit & Compliance (MongoDB)
# ==========================================
# Optional: MongoDB Audit Settings
# If enabled, all job results and detached task lifecycles will be
# asynchronously persisted to MongoDB for long-term audit trail.
NETPULSE_MONGODB__ENABLED=false
NETPULSE_MONGODB__URI=mongodb://localhost:27017
NETPULSE_MONGODB__DATABASE=netpulse
NETPULSE_MONGODB__COLLECTION=audit_jobs
NETPULSE_MONGODB__DETACHED_COLLECTION=audit_detached_tasks
NETPULSE_MONGODB__RETENTION_DAYS=30
NETPULSE_MONGODB__DETACHED_RETENTION_DAYS=30
NETPULSE_MONGODB__MAX_DOCUMENTS=1000000