-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathenv.example
More file actions
65 lines (53 loc) · 2.1 KB
/
env.example
File metadata and controls
65 lines (53 loc) · 2.1 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
# Container Configuration
# Port for the application to listen on inside the Docker container
LISTEN_PORT=8080
# Public URL for the application (as accessed by users through reverse proxy)
# This should NOT include the container port - reverse proxy handles that
PUBLIC_URL=https://bufferbloat.yourdomain.com
# WebRTC UDP Configuration
# Hostname or IP address for direct UDP connections (WebRTC data channels)
# This can be different from the HTTP hostname if UDP traffic bypasses the reverse proxy
WEBRTC_UDP_HOSTNAME=your-server-direct.com
# Alternative: Use direct IP address instead of hostname
# WEBRTC_UDP_IP=192.168.1.100
# Range of UDP ports for WebRTC data channels
# Make sure these ports are open in your firewall and accessible directly
WEBRTC_UDP_PORT_MIN=10000
WEBRTC_UDP_PORT_MAX=10100
# Alternative: Single UDP port (comment out the range above if using this)
# WEBRTC_UDP_PORT=10000
# Application Settings
NODE_ENV=production
LOG_LEVEL=info
# Test Configuration Parameters
# Duration of bufferbloat test in seconds
DEFAULT_TEST_DURATION=30
# Size of test packets in bytes
DEFAULT_PACKET_SIZE=1024
# Rate of test packets per second
DEFAULT_PACKET_RATE=100
# Example configurations for different environments:
# Development (local testing)
# LISTEN_PORT=8080
# PUBLIC_URL=http://localhost:8080
# WEBRTC_UDP_HOSTNAME=localhost
# WEBRTC_UDP_PORT_MIN=10000
# WEBRTC_UDP_PORT_MAX=10020
# NODE_ENV=development
# LOG_LEVEL=debug
# Production (behind nginx reverse proxy with separate UDP endpoint)
# LISTEN_PORT=8080
# PUBLIC_URL=https://bufferbloat.example.com # Users access this (reverse proxy forwards to container:8080)
# WEBRTC_UDP_HOSTNAME=direct.example.com # Direct to server (no proxy)
# WEBRTC_UDP_PORT_MIN=10000
# WEBRTC_UDP_PORT_MAX=10100
# NODE_ENV=production
# LOG_LEVEL=info
# Production with IP address for UDP (common setup)
# LISTEN_PORT=8080
# PUBLIC_URL=https://bufferbloat.example.com # Through reverse proxy
# WEBRTC_UDP_IP=203.0.113.10 # Direct server IP
# WEBRTC_UDP_PORT_MIN=10000
# WEBRTC_UDP_PORT_MAX=10100
# NODE_ENV=production
# LOG_LEVEL=info