1c29c51996-11-20David Kågedal /* -*- Pike -*-
d4a3f52014-05-12Henrik Grubbström (Grubba)  * $Id$
141a0a1998-03-02Henrik Grubbström (Grubba)  *
1c29c51996-11-20David Kågedal  * User configurable things not accessible from the normal
a6ef1f2000-03-28Johan Sundström  * administration interface. Not much, but there are some things..
b1fca01996-11-12Per Hedbor  */
d007ec1997-09-22Henrik Grubbström (Grubba) 
e4a4432002-03-22Jonas Wallden 
59d6b12002-03-22Jonas Wallden #ifndef _ROXEN_CONFIG_H_ #define _ROXEN_CONFIG_H_
a2462a2002-04-05Jonas Wallden // If you are running an MySQL older than 3.23.49 (which lacks a patch for // a security hole in LOAD DATA LOCAL) you need to set this compatibility // flag. // // #define UNSAFE_MYSQL
e4a4432002-03-22Jonas Wallden 
b1fca01996-11-12Per Hedbor 
e1f8142015-04-28Jonas Walldén // Threads are assumed nowadays. We leave the define for third-party code // that still have two code paths. #define THREADS
8fe2632001-01-14Martin Nilsson #define add_efun add_constant
72a4502000-03-10Martin Stjernholm 
b1fca01996-11-12Per Hedbor /* Reply 'PONG\r\n' to the query 'PING\r\n'. * For performance tests... */ #define SUPPORT_PING_METHOD /* Do we want module level deny/allow security (IP-numbers and usernames). * 1% speed loss, as an average. (That is, if your CPU is used to the max. * it probably isn't..) */
df8d711998-02-27Per Hedbor #ifndef NO_MODULE_LEVEL_SECURITY # define MODULE_LEVEL_SECURITY #endif
b1fca01996-11-12Per Hedbor 
41b77c1999-07-15David Hedbor /* If this is disabled, the server won't parse the supports string. This might * make the server somewhat faster. If you don't need this feature but need the * most speed you can get, it might be a good idea to disable supports. */ // #define DISABLE_SUPPORTS
b1fca01996-11-12Per Hedbor /* Define this if you don't want Roxen to use DNS. Note: This * doesn't make the server itself faster. It only reduces the netload * some. This option turns off ALL ip -> hostname and hostname -> ip * conversion. Thus you can't use if if you want to run a proxy. */
832c452001-10-12Anders Johansson // #undef NO_DNS
b1fca01996-11-12Per Hedbor  /* This option turns of all ip->hostname lookups. However the * hostname->ip lookups are still functional. This _is_ usable * if you run a proxy.. :-) */
832c452001-10-12Anders Johansson  // #undef NO_REVERSE_LOOKUP
b1fca01996-11-12Per Hedbor  /* Should we use sete?id instead of set?id?. * There _might_ be security problems with the sete?id functions. */ #define SET_EFFECTIVE
b878961999-11-06Per Hedbor #define URL_MODULES
b1fca01996-11-12Per Hedbor 
6c40602007-09-06Henrik Grubbström (Grubba) /* Define this to change the main RAM cache retention policy * to be based on the time it took to generate the entry and * the number of hits it has received. */ // #define TIME_BASED_CACHE
e52f772000-03-09Martin Stjernholm /* The namespace prefix for RXML. */ #define RXML_NAMESPACE "rxml"
cd7d5f2000-02-16Martin Stjernholm /* Define this to keep support for old (pre-2.0) RXML. */ #define OLD_RXML_COMPAT
eb4aab2006-08-21Marcus Wellhardh /* Define this to enable the RoxenConfig cooke */ #define OLD_RXML_CONFIG
919d802001-04-27Martin Stjernholm // Define to get verbose backtraces in the debug log for each RXML // error. As opposed to the normal reports of RXML errors, they will // include the Pike backtraces too. //#define VERBOSE_RXML_ERRORS
bb3e1d2001-01-04Martin Nilsson // Define back to which Roxen version you would like to keep // compatibility. #define ROXEN_COMPAT 1.3
961ea12000-08-28Per Hedbor 
48a3812001-08-21Jonas Wallden  // Cache timeout for RAM cache #ifndef INITIAL_CACHEABLE # define INITIAL_CACHEABLE 300 #endif
a5e3e02003-02-03Henrik Grubbström (Grubba)  #ifndef HTTP_BLOCKING_SIZE_THRESHOLD // Size at below which blocking writes may be performed without penalty.
8c89862003-04-22Henrik Grubbström (Grubba) // Should correspond to the network buffer size (usually 4KB or 1500 bytes).
a5e3e02003-02-03Henrik Grubbström (Grubba) // Set to zero or negative to always use nonblocking I/O.
8c89862003-04-22Henrik Grubbström (Grubba) #define HTTP_BLOCKING_SIZE_THRESHOLD 1000
a5e3e02003-02-03Henrik Grubbström (Grubba) #endif /* !HTTP_BLOCKING_SIZE_THRESHOLD */ /*---------------- End of configurable options. */ #endif /* if _ROXEN_CONFIG_H_ */