# Tor Configuration for LocalGreenChain Hidden Service
# Copy this file to /etc/tor/torrc or ~/.tor/torrc and edit as needed

# SOCKS proxy port (for outgoing Tor connections)
SocksPort 9050

# Control port for managing Tor
ControlPort 9051

# Hidden Service Configuration
# This allows your LocalGreenChain instance to be accessible via .onion address
HiddenServiceDir /var/lib/tor/localgreenchain/
HiddenServicePort 80 127.0.0.1:3001

# Optional: Multiple hidden service ports
# HiddenServicePort 443 127.0.0.1:3001

# Logging (for debugging)
Log notice file /var/log/tor/notices.log

# Privacy and Security Settings
# Reject non-anonymous single hop circuits
RejectAllOutboundTraffic 0

# Circuit isolation for better privacy
IsolateDestAddr 1
IsolateDestPort 1

# Bridge configuration (if needed to bypass censorship)
# UseBridges 1
# Bridge obfs4 [bridge address]

# Bandwidth settings (optional)
# RelayBandwidthRate 100 KB
# RelayBandwidthBurst 200 KB

# Directory for storing Tor data
DataDirectory /var/lib/tor

# Run as daemon
RunAsDaemon 1
