mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 14:41:59 +01:00
66 lines
1009 B
C
66 lines
1009 B
C
|
/*
|
||
|
* cfg.h, SJ
|
||
|
*/
|
||
|
|
||
|
#ifndef _CFG_H
|
||
|
#define _CFG_H
|
||
|
|
||
|
#include "config.h"
|
||
|
|
||
|
struct __config {
|
||
|
char username[MAXVAL];
|
||
|
|
||
|
char hostid[MAXVAL];
|
||
|
char pidfile[MAXVAL];
|
||
|
|
||
|
char listen_addr[MAXVAL];
|
||
|
int listen_port;
|
||
|
|
||
|
char clamd_addr[MAXVAL];
|
||
|
int clamd_port;
|
||
|
char clamd_socket[MAXVAL];
|
||
|
|
||
|
int use_antivirus;
|
||
|
|
||
|
char memcached_servers[MAXVAL];
|
||
|
int memcached_ttl;
|
||
|
|
||
|
int number_of_worker_processes;
|
||
|
int max_requests_per_child;
|
||
|
int max_connections;
|
||
|
|
||
|
int backlog;
|
||
|
|
||
|
char workdir[MAXVAL];
|
||
|
char queuedir[MAXVAL];
|
||
|
|
||
|
int verbosity;
|
||
|
char locale[MAXVAL];
|
||
|
|
||
|
int session_timeout;
|
||
|
|
||
|
char piler_header_field[MAXVAL];
|
||
|
|
||
|
unsigned char key[KEYLEN];
|
||
|
unsigned char iv[MAXVAL];
|
||
|
|
||
|
// mysql stuff
|
||
|
|
||
|
char mysqlhost[MAXVAL];
|
||
|
int mysqlport;
|
||
|
char mysqlsocket[MAXVAL];
|
||
|
char mysqluser[MAXVAL];
|
||
|
char mysqlpwd[MAXVAL];
|
||
|
char mysqldb[MAXVAL];
|
||
|
int mysql_connect_timeout;
|
||
|
|
||
|
// sqlite3 stuff
|
||
|
|
||
|
char sqlite3[MAXVAL];
|
||
|
char sqlite3_pragma[MAXVAL];
|
||
|
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif /* _CFG_H */
|