suploader

Simple uploader — submit URLs to web archive services
git clone git clone https://git.krisyotam.com/krisyotam/suploader.git
Log | Files | Refs | LICENSE

config.h (688B)


      1 /* See LICENSE file for copyright and license details.
      2  * suploader - Simple Uploader
      3  * configuration header
      4  */
      5 
      6 #ifndef CONFIG_H
      7 #define CONFIG_H
      8 
      9 /* Program metadata */
     10 #define PROG_NAME    "suploader"
     11 #define PROG_VERSION "0.1.0"
     12 
     13 /* Network settings */
     14 #define USER_AGENT       "suploader/0.1 (+https://krisyotam.com)"
     15 #define CONNECT_TIMEOUT  30L
     16 #define REQUEST_TIMEOUT  60L
     17 #define MAX_REDIRECTS    10L
     18 
     19 /* Rate limiting */
     20 #define DEFAULT_DELAY    48  /* seconds between submissions */
     21 
     22 /* Retry settings */
     23 #define MAX_RETRIES      3
     24 #define RETRY_BASE       2   /* base seconds for exponential backoff */
     25 
     26 /* URL limits */
     27 #define MAX_URL_LEN      4096
     28 
     29 #endif /* CONFIG_H */