Sign inSign up

bariskisir/hiddenservicereverseproxy

By bariskisir

Updated about 1 year ago

Reverse proxy for hosting applications on tor network as hidden services.

Image
0

1.6K

bariskisir/hiddenservicereverseproxy repository overview

HiddenServiceReverseProxy

HiddenServiceReverseProxy is a Docker-based reverse proxy that helps you host applications on the Tor network. It makes it easy to expose web applications through the Tor network without manually setting up Tor's hidden service configuration.

Features

  • Easily host any web application (e.g., Nginx, Apache) as a hidden service on the Tor network.
  • Minimal configuration: Just set your backend IP/domain and port, and the proxy will handle everything.
  • Automatically generates and exposes the .onion address for your service.
  • Persist Tor data using Docker volumes, ensuring service easy to move.

Prerequisites

  • Docker and Docker Compose installed on your system.

Single usage

docker run -d \
  -e APP_IP_DOMAIN="192.168.1.10" \  # IP of the application
  -e APP_PORT="80" \               # Port of the application
  -v tor_data:/var/lib/tor \         # Mount volume to persist Tor data
  --name hiddenservicereverseproxy \  # Container name
  --restart unless-stopped \         # Restart policy: restart unless manually stopped
  bariskisir/hiddenservicereverseproxy

Docker compose

services:

  web:
    image: nginx
    networks: 
      - tor_network
    restart: unless-stopped

  hiddenservicereverseproxy:
    image: bariskisir/hiddenservicereverseproxy
    environment:
      APP_IP_DOMAIN: web
      APP_PORT: 80
    networks:
      - tor_network
    volumes:
      - tor_data:/var/lib/tor  # Persist Tor data using a Docker volume
    restart: unless-stopped

networks:
  tor_network:
    driver: bridge

volumes:
  tor_data:  # Volume to persist Tor data
    driver: local

Getting the .onion domain from container
docker logs hiddenservicereverseproxy
Testing with Brave Browser

Brave Browser Alt+Shift+N for tor mode.

Github

Tag summary

Content type

Image

Digest

sha256:ad608b799

Size

10 MB

Last updated

about 1 year ago

docker pull bariskisir/hiddenservicereverseproxy