Tor  0.4.7.0-alpha-dev
hs_options.inc
1 /* Copyright (c) 2001 Matej Pfajfar.
2  * Copyright (c) 2001-2004, Roger Dingledine.
3  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4  * Copyright (c) 2007-2019, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 /**
8  * @file dirauth_options.inc
9  * @brief Declare configuration options for a single hidden service.
10  *
11  * Note that this options file behaves differently from most, since it
12  * is not used directly by the options manager. Instead, it is applied to
13  * a group of hidden service options starting with a HiddenServiceDir and
14  * extending up to the next HiddenServiceDir.
15  **/
16 
17 /** Holds configuration for a single hidden service. */
19 
20 CONF_VAR(HiddenServiceDir, FILENAME, 0, NULL)
21 CONF_VAR(HiddenServiceDirGroupReadable, BOOL, 0, "0")
22 CONF_VAR(HiddenServicePort, LINELIST, 0, NULL)
23 // "-1" means "auto" here.
24 CONF_VAR(HiddenServiceVersion, INT, 0, "-1")
25 CONF_VAR(HiddenServiceAllowUnknownPorts, BOOL, 0, "0")
26 CONF_VAR(HiddenServiceMaxStreams, POSINT, 0, "0")
27 CONF_VAR(HiddenServiceMaxStreamsCloseCircuit, BOOL, 0, "0")
28 CONF_VAR(HiddenServiceNumIntroductionPoints, POSINT, 0, "3")
29 CONF_VAR(HiddenServiceExportCircuitID, STRING, 0, NULL)
30 CONF_VAR(HiddenServiceEnableIntroDoSDefense, BOOL, 0, "0")
31 CONF_VAR(HiddenServiceEnableIntroDoSRatePerSec, POSINT, 0, "25")
32 CONF_VAR(HiddenServiceEnableIntroDoSBurstPerSec, POSINT, 0, "200")
33 CONF_VAR(HiddenServiceOnionBalanceInstance, BOOL, 0, "0")
34 
#define END_CONF_STRUCT(name)
Definition: confdecl.h:64
#define CONF_VAR(varname, vartype, varflags, initval)
Definition: confdecl.h:70
#define BEGIN_CONF_STRUCT(name)
Definition: confdecl.h:59