8573d0d3cc0f1b245e656586789246568be98489
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.
Andrew Lewman update the disk space requi...

Andrew Lewman authored 11 years ago

20)     The Tor website and distribution directory currently require 8.0 GB of
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

21)     disk space.</p>
Andrew Lewman add two anchors for mirror...

Andrew Lewman authored 10 years ago

22)     <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

23)     <p>
24)     If you would like to run a mirror, it's as easy as this command to download
25)     everything a mirror should share with the world:
Sebastian Hahn We decided to go with HTML...

Sebastian Hahn authored 13 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 11 years ago

28)     rsync -av --delete rsync://rsync.torproject.org/website-mirror tor-mirror/
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 11 years ago

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

Andrew Lewman authored 13 years ago

31)     <p>
32)     In order to assure we have reliable and up to date mirrors,
33)     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

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 11 years ago

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

Andrew Lewman authored 13 years ago

38)     Allows "Directory Index / Indexes" (Index viewing) of the /dist
39)     directory.<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)     Have a valid contact email for administrative communications should your
42)     server have issues.<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)     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

45)     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

46)     list</A> where all mirror listing modification requests should go (ADD,
47)     CHANGE, DELETE, any other requests/notifications).  Also, any technical
48)     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

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

Andrew Lewman authored 13 years ago

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

Sebastian Hahn authored 13 years ago

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

Andrew Lewman authored 13 years ago

52)     <p>
53)     An example cronjob to update a full mirror once every 6 hours may look like so:
54)     <tt>
55)     <pre>
56)     # m h  dom mon dow   command
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

57)     0 */6 * * * rsync -aq --delete rsync://rsync.torproject.org/website-mirror/ /var/www/mirrors/torproject.org
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

58)     </pre>
59)     </tt>
60)     </p>
61)     <br/>
62)     For mirror operators that use Apache, we have created a sample virtual host
63)     configuration file to use:
64)     <tt>
65)     <pre>
Andrew Lewman fix up the nginx directions...

Andrew Lewman authored 11 years ago

66)     &lt;VirtualHost 10.10.10.10:80&gt;
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

67)             ServerAdmin youremail@example.com<br/>
Andrew Lewman fix up the nginx directions...

Andrew Lewman authored 11 years ago

68)             ServerName  ServerNameHere<br/>
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 11 years ago

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

Andrew Lewman authored 13 years ago

72)             &lt;Directory /var/www/mirrors/torproject.org/&gt;<br/>
73)                 Options MultiViews Indexes<br/>
74)                 DirectoryIndex index<br/>
75)                 AllowOverride None<br/>
76)             &lt;/Directory&gt;<br/>
Andrew Lewman thanks to creep.im for find...

Andrew Lewman authored 11 years ago

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

Andrew Lewman authored 13 years ago

78)     &lt;/VirtualHost&gt;
79)     </pre>
80)     </tt>
Andrew Lewman thanks to patrick, we have...

Andrew Lewman authored 12 years ago

81)     <br/>
82)     For mirror operators that use nginx, we created a sample virtual host
83)     configuration file to use:
84)     <tt>
85)     <pre>
86)     server {
Andrew Lewman fix up the nginx directions...

Andrew Lewman authored 11 years ago

87)     	listen 10.10.10.10:80;
Andrew Lewman thanks to patrick, we have...

Andrew Lewman authored 12 years ago

88)   	server_name your.example.com;
89) 
90)   	root /var/www/mirrors/torproject.org;
91) 	index index.html.en;
Andrew Lewman fix up the nginx directions...

Andrew Lewman authored 11 years ago

92) 
93) 	location ^~ /dist/ {
94) 	  autoindex on;
95)       }
Andrew Lewman thanks to patrick, we have...

Andrew Lewman authored 12 years ago

96)     }
97)     </pre>
98)     </tt>
99)     <br/>
100)     If you use nginx, please ensure the text/html line in
Andrew Lewman ticket 8757

Andrew Lewman authored 11 years ago

101)     <tt>/etc/nginx/mime.types</tt> matches:
Andrew Lewman thanks to patrick, we have...

Andrew Lewman authored 12 years ago

102)     <tt>
103)     <pre>
104)     text/html                             en html htm shtml;
105)     </pre>
106)     </tt>
107)     <br/><br>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 11 years ago

112)     <br/>
Andrew Lewman add two anchors for mirror...

Andrew Lewman authored 10 years ago

113)     <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

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

Robert Ransom authored 13 years ago

115)     If you are running a mirror, please subscribe to the <A
116)     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

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

Andrew Lewman authored 10 years ago

120) 
Andrew Lewman update how to add your mirror.

Andrew Lewman authored 10 years ago

121)     <p>
122)     In order to add your mirror, please send a
123)     single, comma delimited line of text based on <a
124)     href="https://svn.torproject.org/svn/website/trunk/include/tor-mirrors.csv">this
125)     file</a> to the mirrors list. Your mirror will then be added manually
126)     if it passes availability testing and your provided information is
Andrew Lewman add more hints about runnin...

Andrew Lewman authored 10 years ago

127)     confirmed. Some general pointers on mirrors are:
128)     <ol><li> Try not run your mirror behind a content delivery network
Andrew Lewman update how to add your mirror.

Andrew Lewman authored 10 years ago

129)     (such as Akamai, Cloudflare, Fastly, etc), as most of them block
Andrew Lewman add more hints about runnin...

Andrew Lewman authored 10 years ago

130)     access from countries where the mirror is needed the most.</li>
131)     <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

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

Andrew Lewman authored 10 years ago

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

Andrew Lewman authored 13 years ago

134)     </p>
135)   </div>
136)   <!-- END MAINCOL -->
137)   <div id = "sidecol">
138) #include "side.wmi"
139) #include "info.wmi"
140)   </div>
141)   <!-- END SIDECOL -->
142) </div>
143) <!-- END CONTENT -->