feat: Implement the core InterNetX DDNS updater application with API, services, middleware, Docker support, and a detailed README.

This commit is contained in:
2026-01-26 19:53:31 +01:00
parent bba71a7272
commit 11d2c1fce2
19 changed files with 1739 additions and 2 deletions
+39
View File
@@ -0,0 +1,39 @@
# Server Configuration
PORT=3000
NODE_ENV=production
# InterNetX API Configuration
# Get your credentials from: https://www.internetx.com/
INTERNETX_API_URL=https://api.autodns.com/v1
INTERNETX_USER=your-username
INTERNETX_PASSWORD=your-password
INTERNETX_CONTEXT=4
# DDNS Configuration
# The domain zone managed by this service (e.g., ddns.netstack.berlin)
DEFAULT_ZONE=ddns.netstack.berlin
# Default TTL for DNS records (in seconds)
DEFAULT_TTL=300
# Security Configuration
# Generate secure tokens with: node -e "console.log(require('crypto').randomBytes(64).toString('hex'))"
# Comma-separated list of valid authentication tokens
AUTH_TOKENS=your-token-here,another-token-here
# Optional: IP Whitelist (comma-separated CIDR ranges)
# Leave empty to allow all IPs
# Example: IP_WHITELIST=192.168.1.0/24,10.0.0.0/8
IP_WHITELIST=
# Rate Limiting
# Time window in milliseconds
RATE_LIMIT_WINDOW_MS=300000
# Maximum requests per IP within the time window
RATE_LIMIT_MAX_REQUESTS=20
# Logging Configuration
LOG_LEVEL=info
LOG_FILE_MAX_SIZE=10m
LOG_FILE_MAX_AGE=30d