1 /*
2  * uhub - A tiny ADC p2p connection hub
3  * Copyright (C) 2007-2014, Jan Vidar Krey
4  *
5  * THIS FILE IS AUTOGENERATED - DO NOT MODIFY
6  * Created 2014-07-29 12:22, by config.py
7  */
8 
9 struct hub_config
10 {
11 	int   hub_enabled;                     /*<<< Is server enabled (default: 1) */
12 	int   server_port;                     /*<<< Server port to bind to (default: 1511) */
13 	char* server_bind_addr;                /*<<< Server bind address (default: "any") */
14 	int   server_listen_backlog;           /*<<< Server listen backlog (default: 50) */
15 	char* server_alt_ports;                /*<<< Comma separated list of alternative ports to listen to (default: "") */
16 	int   show_banner;                     /*<<< Show banner on connect (default: 1) */
17 	int   show_banner_sys_info;            /*<<< Show banner on connect (default: 1) */
18 	int   max_users;                       /*<<< Maximum number of users allowed on the hub (default: 500) */
19 	int   registered_users_only;           /*<<< Allow registered users only (default: 0) */
20 	int   register_self;                   /*<<< Allow users to register themselves on the hub. (default: 0) */
21 	int   obsolete_clients;                /*<<< Support obsolete clients using a ADC protocol prior to 1.0 (default: 0) */
22 	int   chat_is_privileged;              /*<<< Allow chat for operators and above only (default: 0) */
23 	char* hub_name;                        /*<<< Name of hub (default: "uhub") */
24 	char* hub_description;                 /*<<< Short hub description, topic or subject. (default: "no description") */
25 	char* redirect_addr;                   /*<<< A common hub redirect address. (default: "") */
26 	int   max_recv_buffer;                 /*<<< Max read buffer before parse, per user (default: 4096) */
27 	int   max_send_buffer;                 /*<<< Max send buffer before disconnect, per user (default: 131072) */
28 	int   max_send_buffer_soft;            /*<<< Max send buffer before message drops, per user (default: 98304) */
29 	int   low_bandwidth_mode;              /*<<< Enable bandwidth saving measures (default: 0) */
30 	int   max_chat_history;                /*<<< Number of chat messages kept in history (default: 20) */
31 	int   max_logout_log;                  /*<<< Number of log entries for people leaving the hub (default: 20) */
32 	int   limit_max_hubs_user;             /*<<< Max concurrent hubs as a guest user (default: 10) */
33 	int   limit_max_hubs_reg;              /*<<< Max concurrent hubs as a registered user (default: 10) */
34 	int   limit_max_hubs_op;               /*<<< Max concurrent hubs as a operator (or admin) (default: 10) */
35 	int   limit_max_hubs;                  /*<<< Max total hub connections allowed, user/reg/op combined. (default: 25) */
36 	int   limit_min_hubs_user;             /*<<< Minimum concurrent hubs as a guest user (default: 0) */
37 	int   limit_min_hubs_reg;              /*<<< Minimum concurrent hubs as a registered user (default: 0) */
38 	int   limit_min_hubs_op;               /*<<< Minimum concurrent hubs as a operator (or admin) (default: 0) */
39 	int   limit_min_share;                 /*<<< Limit minimum share size in megabytes (default: 0) */
40 	int   limit_max_share;                 /*<<< Limit maximum share size in megabytes (default: 0) */
41 	int   limit_min_slots;                 /*<<< Limit minimum number of upload slots open per user (default: 0) */
42 	int   limit_max_slots;                 /*<<< Limit minimum number of upload slots open per user (default: 0) */
43 	int   flood_ctl_interval;              /*<<< Time interval in seconds for flood control check. (default: 0) */
44 	int   flood_ctl_chat;                  /*<<< Max chat messages allowed in time interval (default: 0) */
45 	int   flood_ctl_connect;               /*<<< Max connections requests allowed in time interval (default: 0) */
46 	int   flood_ctl_search;                /*<<< Max search requests allowed in time interval (default: 0) */
47 	int   flood_ctl_update;                /*<<< Max updates allowed in time interval (default: 0) */
48 	int   flood_ctl_extras;                /*<<< Max extra messages allowed in time interval (default: 0) */
49 	int   tls_enable;                      /*<<< Enable SSL/TLS support (default: 0) */
50 	int   tls_require;                     /*<<< If SSL/TLS enabled, should it be required (default: 0) */
51 	char* tls_require_redirect_addr;       /*<<< A redirect address in case a client connects using "adc://" when "adcs://" is required. (default: "") */
52 	char* tls_certificate;                 /*<<< Certificate file (default: "") */
53 	char* tls_private_key;                 /*<<< Private key file (default: "") */
54 	char* tls_ciphersuite;                 /*<<< List of TLS ciphers to use (default: "ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS") */
55 	char* tls_version;                     /*<<< Specify minimum TLS version supported. (default: "1.2") */
56 	char* file_acl;                        /*<<< File containing access control lists (default: "") */
57 	char* file_plugins;                    /*<<< Plugin configuration file (default: "") */
58 	char* msg_hub_full;                    /*<<< "Hub is full" */
59 	char* msg_hub_disabled;                /*<<< "Hub is disabled" */
60 	char* msg_hub_registered_users_only;   /*<<< "Hub is for registered users only" */
61 	char* msg_inf_error_nick_missing;      /*<<< "No nickname given" */
62 	char* msg_inf_error_nick_multiple;     /*<<< "Multiple nicknames given" */
63 	char* msg_inf_error_nick_invalid;      /*<<< "Nickname is invalid" */
64 	char* msg_inf_error_nick_long;         /*<<< "Nickname too long" */
65 	char* msg_inf_error_nick_short;        /*<<< "Nickname too short" */
66 	char* msg_inf_error_nick_spaces;       /*<<< "Nickname cannot start with spaces" */
67 	char* msg_inf_error_nick_bad_chars;    /*<<< "Nickname contains invalid characters" */
68 	char* msg_inf_error_nick_not_utf8;     /*<<< "Nickname is not valid UTF-8" */
69 	char* msg_inf_error_nick_taken;        /*<<< "Nickname is already in use" */
70 	char* msg_inf_error_nick_restricted;   /*<<< "Nickname cannot be used on this hub" */
71 	char* msg_inf_error_cid_invalid;       /*<<< "CID is not valid" */
72 	char* msg_inf_error_cid_missing;       /*<<< "CID is not specified" */
73 	char* msg_inf_error_cid_taken;         /*<<< "CID is taken" */
74 	char* msg_inf_error_pid_missing;       /*<<< "PID is not specified" */
75 	char* msg_inf_error_pid_invalid;       /*<<< "PID is invalid" */
76 	char* msg_ban_permanently;             /*<<< "Banned permanently" */
77 	char* msg_ban_temporarily;             /*<<< "Banned temporarily" */
78 	char* msg_auth_invalid_password;       /*<<< "Password is wrong" */
79 	char* msg_auth_user_not_found;         /*<<< "User not found in password database" */
80 	char* msg_error_no_memory;             /*<<< "No memory" */
81 	char* msg_user_share_size_low;         /*<<< "User is not sharing enough" */
82 	char* msg_user_share_size_high;        /*<<< "User is sharing too much" */
83 	char* msg_user_slots_low;              /*<<< "User have too few upload slots." */
84 	char* msg_user_slots_high;             /*<<< "User have too many upload slots." */
85 	char* msg_user_hub_limit_low;          /*<<< "User is on too few hubs." */
86 	char* msg_user_hub_limit_high;         /*<<< "User is on too many hubs." */
87 	char* msg_user_flood_chat;             /*<<< "Chat flood detected, messages are dropped." */
88 	char* msg_user_flood_connect;          /*<<< "Connect flood detected, connection refused." */
89 	char* msg_user_flood_search;           /*<<< "Search flood detected, search is stopped." */
90 	char* msg_user_flood_update;           /*<<< "Update flood detected." */
91 	char* msg_user_flood_extras;           /*<<< "Flood detected." */
92 	char* msg_proto_no_common_hash;        /*<<< "No common hash algorithm." */
93 	char* msg_proto_obsolete_adc0;         /*<<< "Client is using an obsolete ADC protocol version." */
94 };
95 
96