Flask Server Configuration
The Flask server enables downloading files larger than Discord’s 5MB limit.Basic Setup
Allow
Enable/disable Flask serverType: BooleanDefault:
falseIP
IP address to bind toType: StringDefault:
'0.0.0.0'Port
Port to listen onType: IntegerDefault:
8000IP Address Configuration
Local Development (127.0.0.1)
Local Development (127.0.0.1)
For testing on the same machine:Access: Only from the same machineUse case: Testing, local development
Local Network (0.0.0.0)
Local Network (0.0.0.0)
For access within your local network:Access: Any device on your local networkUse case: Home server, local team
Public Access (Your Public IP)
Public Access (Your Public IP)
For external access:Requirements:
- Port forwarding configured
- Firewall allows port 8000
- Static IP or DDNS
Port Selection
Common ports:8000- Default, commonly used for development8080- Alternative HTTP port5000- Another common Flask default3000-9000- Generally safe range
80- HTTP (requires root/admin)443- HTTPS (requires root/admin)25565- Minecraft default- Ports below 1024 (require elevated permissions)
Firewall Configuration
Router Port Forwarding
For external access, configure port forwarding:Flask Security
Single-Use Links
Configure links to expire after one downloadSet in Discord: Tools → Flask → Single Use
Temporary Links
Links expire automatically after timeSet in Discord: Tools → Flask → Temporary
IP Restrictions
Bind to specific IP for limited access
Reverse Proxy
Use nginx/Apache for HTTPS and rate limitingRecommended for production
Flask with Reverse Proxy
For production, use nginx as a reverse proxy:- McDis Flask runs on
127.0.0.1:8000(not public) - Nginx handles public traffic on port 80
- Add SSL with Let’s Encrypt for HTTPS
Backup Configuration
Retention Policy
- McDis keeps the N most recent backups per process
- Oldest backups are automatically deleted
- Backups are numbered 1 (newest) to N (oldest)
Choosing Backup Count
Backups: 1 (Minimal)
Backups: 1 (Minimal)
Pros:
- Minimal disk usage
- Simple management
- No version history
- If backup fails, you have nothing
Backups: 2 (Basic)
Backups: 2 (Basic)
Pros:
- Can roll back one version
- Low disk usage
- Limited history
Backups: 3 (Recommended)
Backups: 3 (Recommended)
Pros:
- Good balance of history and space
- Can recover from multiple mistakes
- Moderate disk usage
Backups: 4-5 (Extended)
Backups: 4-5 (Extended)
Pros:
- Extensive version history
- More recovery options
- Higher disk usage
- Older backups may be less useful
Disk Space Planning
Estimate disk space needed:- 3 servers, 2GB each
Backups: 3- Total: 3 servers × 2GB × 3 backups = 18GB
Backup Compression
Backups are stored as ZIP archives:- Compression: Standard ZIP compression (reduces size ~20-40%)
- Format:
.zip(compatible with all OS) - Structure: Entire process folder is compressed
Performance Optimization
Console Output Tuning
Reduce console relay overhead:- Reduced Discord API calls
- Less bandwidth usage
- Faster console processing
- Cleaner console threads
Memory Allocation
McDis-RCON Memory:- Base usage: ~50-100MB
- Per process: ~10-20MB
- Console buffers: ~5MB per active process
- OS: 4GB
- McDis: 0.5GB
- Available for servers: 11.5GB
- Allocate: 8GB server + 2GB proxy = 10GB
- Remaining: 1.5GB buffer
Process Priority
On Linux, you can set process priority:Lower priority (higher nice value) ensures Minecraft servers get CPU priority over McDis.
Multiple McDis Instances
You can run multiple McDis instances: Correct setup:Environment-Specific Configurations
Development Environment
Production Environment
Language Customization
McDis supports English and Spanish:- Discord panel messages
- Button labels
- Error messages
- Command responses
- Console output from McDis
- Minecraft server console (depends on server config)
- Plugin output
- Your process names
Configuration Templates
Small Home Server
Large Multi-Server Network
Troubleshooting Advanced Configuration
Flask server won't start
Flask server won't start
Check:
- Port already in use:
netstat -tulpn | grep :8000 - Firewall blocking port
- Invalid IP address
- Permission issues (ports < 1024)
- Choose different port
- Configure firewall
- Verify IP in config
- Use ports ≥ 1024
Can't access Flask from external network
Can't access Flask from external network
Check:
- Port forwarding configured?
- Firewall allows incoming?
- Using public IP, not 127.0.0.1?
- ISP blocking port?
- Set up port forwarding
- Open firewall port
- Use
'0.0.0.0'or public IP - Try different port
Backups filling disk
Backups filling disk
Solution:
- Reduce
Backupssetting - Clean up old backups manually
- Increase disk space
- Compress/archive old backups externally
High memory usage
High memory usage
Possible causes:
- Too many processes
- Console output flooding
- Memory leak (rare)
- Reduce number of processes
- Add more to blacklist
- Restart McDis periodically
Related Documentation
Configuration Overview
Complete configuration reference
Process Setup
Configure servers and networks
File Manager
Using Flask downloads
Backup System
Backup management details
