#ifndef CONFIG_H #define CONFIG_H /* program version */ #define MMAN_VERSION "1.2.1" /* url for web interface */ #define INTERFACEURL "mman" /* timeout for receiving first header and waiting on remote server to send response */ #define TIMEOUT 60 /* duration connection will remain open for keep-alive */ #define KEEPTIMEOUT 120 /* maximum listening ports allowed */ #define MAXLISTENPORTS 20 /* maximum threads (thus, maximum connections) */ #define MAXTHREADS 1024 /* template for mkstemp() when using external program with temporary file */ #define TEMPFILE "/tmp/mmanXXXXXX" /* time in seconds to hold dns results in cache before purging */ #define DNS_EXPIRE 360 /* size of hashtable for cached dns results */ #define DNS_HASH_SIZE 1024 /* flags for regcomp */ #define REGFLAGS REG_EXTENDED | REG_ICASE | REG_NOSUB /* flags for pcre_compile */ #define PCREFLAGS PCRE_CASELESS | PCRE_DOTALL | PCRE_MULTILINE /* format of log timestamps, see strftime manpage for help */ #define TIMEFORMAT "%a %d %H:%M:%S" /* maximum substrings for regexp's with backreferences (rewrite rules) */ #define PCRE_MAX_SUBSTRING 16 /* filebuf size will always be aligned to a multiple of this number, must be a power of 2. this reduces overhead due to excessive realloc'ing */ #define FILEBUF_ALIGNMENT 65536 /* size of blocks to read/write at once */ #define BLOCKSIZE 65536 /* maximum size of pages to buffer for rewriting and external parsing (in bytes), or -1 to disable checking note: this doesn't work for pages that use chunked encoding */ #define BUFFERMAX 512000 /* default number of log entries to keep in memory for web interface */ #define LOGBUFFERSIZE 1000 /* mask of log entry types to _NOT_ show on the web interface */ #define LOGMASK MMLOG_DEBUG /* web interface colours */ #define INTERFACE_BG "#99AABB" /* background */ #define INTERFACE_TEXT "#000000" /* text */ #define INTERFACE_LINK "#0000FF" /* link */ #define INTERFACE_VLINK "#0000FF" /* visited link */ #define INTERFACE_TABLEBG "#DDEEFF" /* table background */ #endif /* CONFIG_H */