torrc.template 596 B

12345678910111213141516171819202122
  1. # hide healthchecks:
  2. # > [notice] {CONTROL} New control connection opened from 127.0.0.1.
  3. Log [~control]notice warn stdout
  4. LogMessageDomains 1
  5. # default: ~/.tor
  6. DataDirectory /var/lib/tor
  7. # https://gitweb.torproject.org/torspec.git/tree/control-spec.txt
  8. ControlPort localhost:9051
  9. SocksPort 0
  10. # https://www.torproject.org/docs/tor-onion-service
  11. HiddenServiceDir /onion-service
  12. HiddenServiceVersion $VERSION
  13. HiddenServicePort $VIRTUAL_PORT $TARGET
  14. HiddenServiceSingleHopMode $NON_ANONYMOUS_SINGLE_HOP_MODE
  15. HiddenServiceNonAnonymousMode $NON_ANONYMOUS_SINGLE_HOP_MODE
  16. # try to
  17. HardwareAccel 1