07666f713165023f0aa328b7c21fb195f8eaf253
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

1) ## translation metadata
Roger Dingledine looks like we never set the...

Roger Dingledine authored 13 years ago

2) # Revision: $Revision$
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

3) # Translation-Priority: 4-optional
4) 
5) #include "head.wmi" TITLE="Tor: Running a Mirror" CHARSET="UTF-8"
6) <div id="content" class="clearfix">
7)   <div id="breadcrumbs">
Andrew Lewman change all of the breadcrum...

Andrew Lewman authored 13 years ago

8)     <a href="<page index>">Home &raquo; </a>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

9)     <a href="<page docs/documentation>">Documentation &raquo; </a>
10)     <a href="<page docs/running-a-mirror>">Running a Mirror</a>
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

11)   </div>
12)   <div id="maincol">
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

13)     <h1>Tor: Running a Mirror</h1>
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 13 years ago

14)     <hr>
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

15) 
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

16)     <p>Thank you for wanting to mirror the Tor website.  All of
17)     our mirrors are publicly listed on <a href="<page getinvolved/mirrors>">our mirrors
18)     page</a>.  We've included some sample commands and configuration below
19)     to make the initial setup and ongoing maintenance a minimal effort.
Sebastian Hahn currently mirrors need 24GB...

Sebastian Hahn authored 9 years ago

20)     The Tor website and distribution directory currently require roughly
Sebastian Hahn Update mirroring disk space...

Sebastian Hahn authored 9 years ago

21)     30 GB of disk space, but this number can fluctuate. Expect space
22)     requirements of up to 50 GB.
Sebastian Hahn currently mirrors need 24GB...

Sebastian Hahn authored 9 years ago

23)     </p>
Roger Dingledine whoever added those anchors...

Roger Dingledine authored 6 years ago

24)     <a id="sysconfig"></a>
Andrew Lewman add two anchors for mirror...

Andrew Lewman authored 10 years ago

25)     <h2><a class="anchor" href="#sysconfig">Configuring your System</a></h2>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

26)     <p>
Sebastian Hahn Update mirror instructions

Sebastian Hahn authored 9 years ago

27)     If you would like to run a mirror, it's as easy as these commands to download
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

28)     everything a mirror should share with the world:
Sebastian Hahn Tweak running-mirrors layou...

Sebastian Hahn authored 9 years ago

29)     </p>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

30)     <tt>
Sebastian Hahn Fix some <pre> on running-a...

Sebastian Hahn authored 9 years ago

31) <pre>
Sebastian Hahn Clarify mirroring instructi...

Sebastian Hahn authored 9 years ago

32) rsync -aq --exclude dist --delete rsync://rsync.torproject.org/website-mirror/ /var/www/mirrors/torproject.org
33) rsync -aq --delete rsync://rsync.torproject.org/dist-mirror/ /var/www/mirrors/torproject.org/dist
Sebastian Hahn Fix some <pre> on running-a...

Sebastian Hahn authored 9 years ago

34) </pre>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

35)     </tt>
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

36) 
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

37)     <p>
38)     In order to assure we have reliable and up to date mirrors,
39)     please ensure your mirror does at least the following:<br/><br/>
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

40) 
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

41)     Updates <b>no less</b> than every six hours, but no more frequent than every
42)     hour.<br/><br/>
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

43) 
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

44)     Allows "Directory Index / Indexes" (Index viewing) of the /dist
45)     directory.<br/><br/>
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

46) 
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

47)     Have a valid contact email for administrative communications should your
48)     server have issues.<br/><br/>
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

49) 
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

50)     It is highly recommended for all mirror operators to subscribe to <A
jon@svn.torproject.org update to reflect new maili...

jon@svn.torproject.org authored 13 years ago

51)     href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-mirrors">tor-mirrors mailing
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

52)     list</A> where all mirror listing modification requests should go (ADD,
53)     CHANGE, DELETE, any other requests/notifications).  Also, any technical
54)     assistance in setting up your mirror may be found here as well.<br/><br/>
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

55) 
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

56)     </p>
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 13 years ago

57)     <br><br>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

58)     <p>
59)     An example cronjob to update a full mirror once every 6 hours may look like so:
Sebastian Hahn Tweak running-mirrors layou...

Sebastian Hahn authored 9 years ago

60)     </p>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

61)     <tt>
Sebastian Hahn Fix some <pre> on running-a...

Sebastian Hahn authored 9 years ago

62) <pre>
63) # m h  dom mon dow   command
Roger Dingledine remove a couple of distract...

Roger Dingledine authored 9 years ago

64) 0 */6 * * * rsync -aq --exclude dist --delete rsync://rsync.torproject.org/website-mirror/ /var/www/mirrors/torproject.org
Sebastian Hahn Fix some <pre> on running-a...

Sebastian Hahn authored 9 years ago

65) 5 */6 * * * rsync -aq --delete rsync://rsync.torproject.org/dist-mirror/ /var/www/mirrors/torproject.org/dist
66) </pre>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

67)     </tt>
Sebastian Hahn Tweak running-mirrors layou...

Sebastian Hahn authored 9 years ago

68)     <p>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

69)     For mirror operators that use Apache, we have created a sample virtual host
70)     configuration file to use:
Sebastian Hahn Tweak running-mirrors layou...

Sebastian Hahn authored 9 years ago

71)     </p>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

72)     <tt>
Sebastian Hahn Fix some <pre> on running-a...

Sebastian Hahn authored 9 years ago

73) <pre>
74) &lt;VirtualHost 10.10.10.10:80&gt;
Sebastian Hahn Tweak running-mirrors layou...

Sebastian Hahn authored 9 years ago

75)     ServerAdmin youremail@example.com<br/>
76)     ServerName  ServerNameHere<br/>
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

77) 
Sebastian Hahn Tweak running-mirrors layou...

Sebastian Hahn authored 9 years ago

78)     DocumentRoot /var/www/mirrors/torproject.org<br/>
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

79) 
Sebastian Hahn Tweak running-mirrors layou...

Sebastian Hahn authored 9 years ago

80)     &lt;Directory /var/www/mirrors/torproject.org/&gt;<br/>
Roger Dingledine apparently apache cannot ha...

Roger Dingledine authored 9 years ago

81)         # Be sure to enable the autoindex and negotiation modules<br/>
82)         Options MultiViews Indexes<br/>
Sebastian Hahn Tweak running-mirrors layou...

Sebastian Hahn authored 9 years ago

83)         DirectoryIndex index<br/>
84)         AllowOverride None<br/>
85)     &lt;/Directory&gt;<br/>
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

86) 
Sebastian Hahn Fix some <pre> on running-a...

Sebastian Hahn authored 9 years ago

87) &lt;/VirtualHost&gt;
88) </pre>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

89)     </tt>
Sebastian Hahn Tweak running-mirrors layou...

Sebastian Hahn authored 9 years ago

90)     <p>
Andrew Lewman thanks to patrick, we have...

Andrew Lewman authored 12 years ago

91)     For mirror operators that use nginx, we created a sample virtual host
92)     configuration file to use:
Sebastian Hahn Tweak running-mirrors layou...

Sebastian Hahn authored 9 years ago

93)     </p>
Andrew Lewman thanks to patrick, we have...

Andrew Lewman authored 12 years ago

94)     <tt>
Sebastian Hahn Fix some <pre> on running-a...

Sebastian Hahn authored 9 years ago

95) <pre>
96) server {
97)     listen 10.10.10.10:80;
98)     server_name your.example.com;
Andrew Lewman thanks to patrick, we have...

Andrew Lewman authored 12 years ago

99) 
Sebastian Hahn Fix some <pre> on running-a...

Sebastian Hahn authored 9 years ago

100)     root /var/www/mirrors/torproject.org;
101)     index index.html.en;
Andrew Lewman fix up the nginx directions...

Andrew Lewman authored 11 years ago

102) 
Sebastian Hahn Fix some <pre> on running-a...

Sebastian Hahn authored 9 years ago

103)     location  / {
104)         autoindex on;
Andrew Lewman thanks to patrick, we have...

Andrew Lewman authored 12 years ago

105)     }
Sebastian Hahn Fix some <pre> on running-a...

Sebastian Hahn authored 9 years ago

106) }
107) </pre>
Andrew Lewman thanks to patrick, we have...

Andrew Lewman authored 12 years ago

108)     </tt>
Sebastian Hahn Tweak running-mirrors layou...

Sebastian Hahn authored 9 years ago

109)     <p>
Andrew Lewman thanks to patrick, we have...

Andrew Lewman authored 12 years ago

110)     If you use nginx, please ensure the text/html line in
Andrew Lewman ticket 8757

Andrew Lewman authored 11 years ago

111)     <tt>/etc/nginx/mime.types</tt> matches:
Sebastian Hahn Tweak running-mirrors layou...

Sebastian Hahn authored 9 years ago

112)     </p>
Andrew Lewman thanks to patrick, we have...

Andrew Lewman authored 12 years ago

113)     <tt>
Sebastian Hahn Fix some <pre> on running-a...

Sebastian Hahn authored 9 years ago

114) <pre>
115) text/html                             en html htm shtml;
116) </pre>
Andrew Lewman thanks to patrick, we have...

Andrew Lewman authored 12 years ago

117)     </tt>
118)     <br/><br>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

119)     Please ensure that you keep your mirror updated (we suggest automating this
120)     task with something like '<tt>cron</tt>'). Our website, source code and
121)     binary releases change often. An update frequency of six hours is recommended.  Tor users everywhere will thank you.
122)     </p>
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

123)     <br/>
Roger Dingledine whoever added those anchors...

Roger Dingledine authored 6 years ago

124)     <a id="mirrorops"></a>
Andrew Lewman add two anchors for mirror...

Andrew Lewman authored 10 years ago

125)     <h2><a class="anchor" href="#mirrorops">Joining the mirror community</a></h2>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

126)     <p>
Robert Ransom Update mailing list subscri...

Robert Ransom authored 13 years ago

127)     If you are running a mirror, please subscribe to the <A
128)     href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-mirrors">tor-mirrors
Andrew Lewman update how to add your mirror.

Andrew Lewman authored 10 years ago

129)     mailing list</A>, and introduce yourself there. Help for mirror
130)     support and configuration issues may also be found on the list.
131)     </p>
Andrew Lewman add two anchors for mirror...

Andrew Lewman authored 10 years ago

132) 
Andrew Lewman update how to add your mirror.

Andrew Lewman authored 10 years ago

133)     <p>
134)     In order to add your mirror, please send a
135)     single, comma delimited line of text based on <a
Sebastian Hahn Update tor-mirrors.csv loca...

Sebastian Hahn authored 8 years ago

136)     href="https://gitweb.torproject.org/project/web/webwml.git/plain/include/tor-mirrors.csv">this
Andrew Lewman update how to add your mirror.

Andrew Lewman authored 10 years ago

137)     file</a> to the mirrors list. Your mirror will then be added manually
138)     if it passes availability testing and your provided information is
Andrew Lewman add more hints about runnin...

Andrew Lewman authored 10 years ago

139)     confirmed. Some general pointers on mirrors are:
Roger Dingledine remove a couple of distract...

Roger Dingledine authored 9 years ago

140)     <ol><li> Try not to run your mirror behind a content delivery network
141)     (such as Akamai, Cloudflare, Fastly, etc) as most of them block
Andrew Lewman add more hints about runnin...

Andrew Lewman authored 10 years ago

142)     access from countries where the mirror is needed the most.</li>
143)     <li> Try not to redirect http to https. Many places in the world
Andrew Lewman add two anchors for mirror...

Andrew Lewman authored 10 years ago

144)     cannot use https due to local or national firewalls.</li>
Andrew Lewman add more hints about runnin...

Andrew Lewman authored 10 years ago

145)     </ol>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

146)     </p>
147)   </div>
148)   <!-- END MAINCOL -->
149)   <div id = "sidecol">
150) #include "side.wmi"
151) #include "info.wmi"
152)   </div>
153)   <!-- END SIDECOL -->
154) </div>
155) <!-- END CONTENT -->