File size: 1,418 Bytes
24c463f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Tor configuration for a Taper server as an onion service. Append to
# /etc/tor/torrc (or use as a separate torrc) and restart Tor. See
# deploy/README.md, "Running on Tor".

# The onion service. Tor creates the directory, the keys and the
# `hostname` file holding the address. Back up hs_ed25519_secret_key:
# losing it loses the address, and so every user ID on the server.
HiddenServiceDir /var/lib/tor/taper/
HiddenServicePort 80 127.0.0.1:8080
# Add this too if Taper also serves TLS (TAPER_TLS_CERT), for post-quantum
# protection inside the onion service:
#HiddenServicePort 443 127.0.0.1:8443

# Proof-of-work defence against introduction floods (Tor 0.4.8+).
HiddenServicePoWDefensesEnabled 1
# Limit streams per circuit, and close circuits that exceed it.
HiddenServiceMaxStreams 64
HiddenServiceMaxStreamsCloseCircuit 1

# Only invited users can reach the service at all: put one
# <name>.auth file per user in /var/lib/tor/taper/authorized_clients/
# (see "Client authorization" in Tor's manual). Optional.

# The SOCKS port Taper uses for outbound federation (TAPER_TOR_SOCKS).
# IsolateSOCKSAuth (on by default) gives each peer its own circuits.
SocksPort 127.0.0.1:9050 IsolateSOCKSAuth

# Where Tor is blocked, use bridges, for example Snowflake or WebTunnel:
#UseBridges 1
#ClientTransportPlugin snowflake exec /usr/bin/snowflake-client
#Bridge snowflake ...   (from https://bridges.torproject.org)