Skip to content

Code structure

evilaliv3 edited this page Nov 7, 2012 · 9 revisions

This file specify what's the content of directories and files present in Tor2Web-3.0 repository.

This file is part of Tor2web documentation wiki

Tor2Web-3.0/

  • LICENSE: GNU Affero General Public License 3
  • README.md: general project entry point
  • config.py: configiguration parsing library
  • Feature.md
  • fileList.py: contains the definition for classes useful to parse and update list files
  • run.py: starting point of Tor2web code
  • socksclient.py: socksv5 library
  • storage.py: contains a Storage (Dictionary Like) class definition
  • templating.py: contains a Templating class used for HTML rendering
  • tor2web.conf.example: contains a Tor2web configuratiuon example
  • tor2web.py: contains the Tor2web core

Tor2Web-3.0/certs

In this directory need to be installed Tor2web certificates.

As examples its contains the following The following files:

  • tor2web_dh_test.pem, a file containing Diffie Hellman parameters
  • tor2web-intermediate_cert_test.pem, a file containing the full ordered certifice chain
  • tor2web_key_test.key, a file containing the private key

Tor2Web-3.0/contrib

In this directory stay the additional files and scripts useful to run a Tor2web node

Tor2Web-3.0/contrib/debian

Tor2Web-3.0/contrib/monit

Tor2Web-3.0/lists

In this directory stay some files used by Tor2web to configure blocklist

  • blocked_ua.txt, used to filter some client User Agents
  • blocklist_cleartext.txt, used to filter some destination HS and pages in cleartext mode
  • blocklist_hashed.txt, used to filter some destination HS and pages in hashed mode

Tor2Web-3.0/static

  • index.html
  • tor2web.(css|js)
  • tor2web[-small].png: logos of tor2web in different size,

Tor2Web-3.0/templates

In this directory stay some templating files used by Tor2web

  • error_blocked_ua.xml
  • error_hs_completely_blocked.xml
  • error_invalid_hostname.xml
  • error_sock_hs_not_found.xml
  • footer.xml
  • tos.xml
  • error_generic.xml
  • error_hs_specific_page_blocked.xml
  • error_sock_generic.xml
  • error_sock_hs_not_reachable.xml
  • header.xml
Clone this wiki locally