sbot

Simple web archiver — self-contained GWTAR archives
git clone git clone https://git.krisyotam.com/krisyotam/sbot.git
Log | Files | Refs | README | LICENSE

config.h (825B)


      1 /* See LICENSE file for copyright and license details.
      2  * sbot - Simple Archiver Bot
      3  * configuration header
      4  */
      5 
      6 #ifndef CONFIG_H
      7 #define CONFIG_H
      8 
      9 /* Archiver metadata */
     10 #define ARCHIVER_NAME    "Kris Yotam"
     11 #define ARCHIVER_SITE    "krisyotam.com"
     12 #define ARCHIVER_VERSION "0.3.0"
     13 
     14 /* Network settings */
     15 #define USER_AGENT       "sbot/0.3 (+https://krisyotam.com)"
     16 #define CONNECT_TIMEOUT  30L
     17 #define REQUEST_TIMEOUT  60L
     18 #define MAX_REDIRECTS    10L
     19 
     20 /* Crawl settings */
     21 #define MAX_DEPTH        5
     22 #define RATE_LIMIT_MS    1000  /* milliseconds between requests */
     23 #define MAX_FILE_SIZE    (50 * 1024 * 1024)  /* 50 MB max per resource */
     24 
     25 /* Output settings */
     26 #define OUTPUT_EXT       ".gwtar.html"
     27 
     28 /* Progress reporting interval (pages between status lines) */
     29 #define PROGRESS_INTERVAL 10
     30 
     31 #endif /* CONFIG_H */