1 #ifndef SQUID_SQUIDCONFIG_H_
2 #define SQUID_SQUIDCONFIG_H_
7 * SQUID Web Proxy Cache http://www.squid-cache.org/
8 * ----------------------------------------------------------
10 * Squid is the result of efforts by numerous individuals from
11 * the Internet community; see the CONTRIBUTORS file for full
12 * details. Many organizations have provided support for Squid's
13 * development; see the SPONSORS file for full details. Squid is
14 * Copyrighted (C) 2001 by the Regents of the University of
15 * California; see the COPYRIGHT file for full details. Squid
16 * incorporates software developed and/or copyrighted by other
17 * sources; see the CREDITS file for full details.
19 * This program is free software; you can redistribute it and/or modify
20 * it under the terms of the GNU General Public License as published by
21 * the Free Software Foundation; either version 2 of the License, or
22 * (at your option) any later version.
24 * This program is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 * GNU General Public License for more details.
29 * You should have received a copy of the GNU General Public License
30 * along with this program; if not, write to the Free Software
31 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
35 #include "ClientDelayConfig.h"
36 #include "DelayConfig.h"
37 #include "HttpHeaderTools.h"
38 #include "icmp/IcmpConfig.h"
39 #include "ip/Address.h"
42 #include "YesNoNone.h"
45 #include <openssl/ssl.h>
49 class acl_deny_info_list
;
54 class RemovalPolicySettings
;
63 /* These should be for the Store::Root instance.
64 * this needs pluggable parsing to be done smoothly.
70 YesNoNone memShared
; ///< whether the memory cache is shared among workers
79 RemovalPolicySettings
*replPolicy
;
80 RemovalPolicySettings
*memPolicy
;
81 #if USE_HTTP_VIOLATIONS
85 time_t negativeDnsTtl
;
86 time_t positiveDnsTtl
;
87 time_t shutdownLifetime
;
88 time_t backgroundPingRate
;
98 time_t clientIdlePconn
;
99 time_t serverIdlePconn
;
102 int icp_query
; /* msec */
103 int icp_query_max
; /* msec */
104 int icp_query_min
; /* msec */
105 int mcast_icp_query
; /* msec */
108 time_msec_t idns_retransmit
;
109 time_msec_t idns_query
;
113 size_t maxRequestHeaderSize
;
114 int64_t maxRequestBodySize
;
115 int64_t maxChunkedRequestBodySize
;
116 size_t maxRequestBufferSize
;
117 size_t maxReplyHeaderSize
;
118 acl_size_t
*ReplyBodySize
;
135 AnyP::PortCfg
*https
;
156 Ip::Address_list
*router
;
158 int forwarding_method
;
160 int assignment_method
;
171 char *as_whois_server
;
176 customlog
*accesslogs
;
186 char *visible_appname_string
;
187 char *effectiveGroup
;
208 HelperChildConfig dnsChildren
;
211 HelperChildConfig redirectChildren
;
212 time_t authenticateGCInterval
;
213 time_t authenticateTTL
;
214 time_t authenticateIpTTL
;
220 size_t appendDomainLen
;
223 char *mimeTablePathname
;
225 char *visibleHostname
;
226 char *uniqueHostname
;
227 wordlist
*hostnameAliases
;
239 Ip::Address udp_incoming
;
240 Ip::Address udp_outgoing
;
242 Ip::Address snmp_incoming
;
243 Ip::Address snmp_outgoing
;
245 /* FIXME INET6 : this should really be a CIDR value */
246 Ip::Address client_netmask
;
249 size_t udpMaxHitObjsz
;
250 wordlist
*hierarchy_stoplist
;
251 wordlist
*mcast_group_list
;
252 wordlist
*dns_nameservers
;
267 cachemgr_passwd
*passwd_list
;
270 int objectsPerBucket
;
271 int64_t avgObjectSize
;
272 int64_t maxObjectSize
;
273 int64_t minObjectSize
;
274 size_t maxInMemObjSize
;
296 int test_reachability
;
297 int half_closed_clients
;
299 #if USE_HTTP_VIOLATIONS
305 int redir_rewrites_host
;
307 int nonhierarchical_direct
;
308 int strip_query_terms
;
309 int redirector_bypass
;
310 int ignore_unknown_nameservers
;
314 #if USE_CACHE_DIGESTS
316 int digest_generation
;
320 int vary_ignore_expire
;
321 int pipeline_prefetch
;
322 int surrogate_is_remote
;
323 int request_entities
;
324 int detect_broken_server_pconns
;
325 int balance_on_multiple_ip
;
326 int relaxed_header_parser
;
328 int allow_underscore
;
331 int httpd_suppress_version_string
;
332 int global_internal_static
;
334 #if FOLLOW_X_FORWARDED_FOR
335 int acl_uses_indirect_client
;
336 int delay_pool_uses_indirect_client
;
337 int log_uses_indirect_client
;
339 int tproxy_uses_indirect_client
;
341 #endif /* FOLLOW_X_FORWARDED_FOR */
343 int WIN32_IpAddrChangeMonitor
;
344 int memory_cache_first
;
345 int memory_cache_disk
;
346 int hostStrictVerify
;
347 int client_dst_passthru
;
350 int forward_max_tries
;
357 acl_access
*adapted_http
;
360 acl_access
*NeverDirect
;
361 acl_access
*AlwaysDirect
;
369 #if USE_HTTP_VIOLATIONS
370 acl_access
*brokenPosts
;
372 acl_access
*redirector
;
374 acl_address
*outgoing_address
;
378 acl_access
*htcp_clr
;
382 acl_access
*ssl_bump
;
384 #if FOLLOW_X_FORWARDED_FOR
385 acl_access
*followXFF
;
386 #endif /* FOLLOW_X_FORWARDED_FOR */
392 acl_deny_info_list
*denyInfoList
;
408 RefCount
<SwapDir
> *swapDirs
;
411 /// number of disk processes required to support all cache_dirs
415 * I'm sick of having to keep doing this ..
417 #define INDEXSD(i) (Config.cacheSwap.swapDirs[(i)].getRaw())
423 char *errorDirectory
;
425 char *errorDefaultLanguage
;
426 int errorLogMissingLanguages
;
428 char *errorStylesheet
;
440 ClientDelayConfig ClientDelay
;
449 int max_open_disk_fds
;
451 acl_size_t
*rangeOffsetLimit
;
452 #if MULTICAST_MISS_STREAM
463 /// request_header_access and request_header_replace
464 HeaderManglers
*request_header_access
;
465 /// reply_header_access and reply_header_replace
466 HeaderManglers
*reply_header_access
;
467 ///request_header_add access list
468 HeaderWithAclList
*request_header_add
;
471 #if USE_CACHE_DIGESTS
475 time_t rebuild_period
;
476 time_t rewrite_period
;
477 size_t swapout_chunk_size
;
478 int rebuild_chunk_percentage
;
484 int unclean_shutdown
;
489 wordlist
*ext_methods
;
496 char *store_dir_select_algorithm
;
497 int sleep_after_fork
; /* microseconds */
498 time_t minimum_expiry_time
; /* seconds */
499 external_acl
*externalAclHelperList
;
513 acl_access
*cert_error
;
515 sslproxy_cert_sign
*cert_sign
;
516 sslproxy_cert_adapt
*cert_adapt
;
522 int max_filedescriptors
;
524 CpuAffinityMap
*cpuAffinityMap
;
526 #if USE_LOADABLE_MODULES
527 wordlist
*loadable_module_names
;
530 int client_ip_max_connections
;
533 int v4_first
; ///< Place IPv4 first in the order of DNS results.
534 ssize_t packet_max
; ///< maximum size EDNS advertised for DNS replies.
539 extern SquidConfig Config
;
542 struct SquidConfig2
{
545 int mangle_request_headers
;
547 uid_t effectiveUserID
;
548 gid_t effectiveGroupID
;
551 extern SquidConfig2 Config2
;
553 #endif /* SQUID_SQUIDCONFIG_H_ */