-
Notifications
You must be signed in to change notification settings - Fork 103
/
tor.conf.txt
54 lines (49 loc) · 1.43 KB
/
tor.conf.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# -*- conf -*-
# eotk (c) 2017 Alec Muffett
%%IF %IS_SOFTMAP%
# template note: here we use TOR_DIR not PROJECT_DIR because of the
# relocation of Tor directories under `softmap`
DataDirectory %TOR_DIR%
ControlPort unix:%TOR_DIR%/tor-control.sock
PidFile %TOR_DIR%/tor.pid
Log %TOR_SYSLOG% file %TOR_DIR%/tor.log
%%ELSE
DataDirectory %PROJECT_DIR%
ControlPort unix:%PROJECT_DIR%/tor-control.sock
PidFile %PROJECT_DIR%/tor.pid
Log %TOR_SYSLOG% file %LOG_DIR%/tor.log
%%ENDIF
SafeLogging 1
HeartbeatPeriod 60 minutes
LongLivedPorts 80,443
RunAsDaemon 1
%%IF %TOR_SINGLE_ONION%
# use single onions, many settings to tweak:
SocksPort 0
HiddenServiceSingleHopMode 1
HiddenServiceNonAnonymousMode 1
%%ELSE
# use normal onions
SocksPort 0 # frankly we don't want SOCKS anyway
%%ENDIF
%%IF %IS_SOFTMAP%
# softmap
HiddenServiceDir %TOR_DIR%
HiddenServicePort 80 unix:%TOR_DIR%/port-80.sock
HiddenServicePort 443 unix:%TOR_DIR%/port-443.sock
%%IF %TOR_INTROS_PER_DAEMON%
HiddenServiceNumIntroductionPoints %TOR_INTROS_PER_DAEMON%
%%ENDIF
HiddenServiceVersion %ONION_VERSION%
%%ELSE
%%BEGIN
# hardmap for: %DNS_DOMAIN% -> %ONION_ADDRESS%
HiddenServiceDir %PROJECT_DIR%/%ONION_DIRNAME%
HiddenServicePort 80 unix:%PROJECT_DIR%/%ONION_DIRNAME%/port-80.sock
HiddenServicePort 443 unix:%PROJECT_DIR%/%ONION_DIRNAME%/port-443.sock
%%IF %TOR_INTROS_PER_DAEMON%
HiddenServiceNumIntroductionPoints %TOR_INTROS_PER_DAEMON%
%%ENDIF
HiddenServiceVersion %ONION_VERSION%
%%END
%%ENDIF