[Metamod] FastDL HTTP server

Adding Modules to help with scripting/coding plugins.
User avatar
Archive-Poster
Posts: 1090
Gender:
United States of America

[Metamod] FastDL HTTP server

Post by Archive-Poster »

A metamod plugin that serves up fastdl for goldsrc games.

Requires one open TCP port, and provides rudimentary security to prevent people from touching directory listings and sensitive filetypes.

Once it's running, just point sv_downloadurl at "http://your-ip:port/" and you're good.

Code:
fastdl.cfg

fastdl_enabled "1"
fastdl_bind "0.0.0.0"
fastdl_port "0"
fastdl_root "cstrike"
fastdl_serve_dirs "sprites,sound,sounds,overviews,models,maps,gfx"
fastdl_serve_types "bsp,nav,res,wad,mdl,spr,wav,mp3,bmp,tga,txt,htm,html,gz,bz2"
fastdl_max_file_mb "250"
fastdl_threads "1"
fastdl_max_connections_ip "32"
fastdl_requests_minute "500"
fastdl_denials_minute "36"
fastdl_block_seconds "180"
fastdl_log "logs/fastdl/fastdl.log"
fastdl_log_age "7"

// fastdl_enabled toggle server (default "1")
// fastdl_bind listen address (default "0.0.0.0")
// fastdl_port listen port (TCP); 0 uses the game port number (default "0")
// fastdl_root directory URLs resolve under (default "cstrike")
// fastdl_serve_dirs subdirectories served, comma separated (default "sprites,sound,sounds,overviews,models,maps,gfx")
// fastdl_serve_types extensions served, comma separated (default "bsp,nav,res,wad,mdl,spr,wav,mp3,bmp,tga,txt,htm,html,gz,bz2")
// fastdl_max_file_mb refuse files larger than this (default "250")
// fastdl_threads HTTP worker threads; raise only for slow disks (default "1")
// fastdl_max_connections_ip concurrent connections per IP (default "32")
// fastdl_requests_minute requests per minute per IP (default "500")
// fastdl_denials_minute denials per minute before a temporary block (default "36")
// fastdl_block_seconds how long a block lasts, in seconds (default "180")
// fastdl_log log base path; one file per day (default "logs/fastdl/fastdl.log")
// fastdl_log_age days of logs to keep, 0 keeps all (default "7")

client commands

fastdl_status show server status
fastdl_restart restart daemon
fastdl_unblock <ip> unblock temp-banned IP
Before anyone asks, the reason the default file limit number is so high is because I've seen maps with 300+ individual detailtexture files lol.
Attachments
fastdl_mm-1.0.5.zip
(181.33 KiB) Downloaded 3 times
fastdl_mm_i386.so.zip
(665 KiB) Downloaded 3 times
fastdl_mm.dll.zip
(202.09 KiB) Downloaded 2 times

Who is online

Users browsing this forum: No registered users and 0 guests