Hidden Service Proxy
This repository has been archived on 2021-09-23. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
Samuel Philipp b36d2ce1b0
All checks were successful
continuous-integration/drone/push Build is passing
Merge pull request 'Update dependency tor to v0.4.4.8-r0' (#6) from renovate/base-dependencies into main
Reviewed-on: #6
2021-03-17 18:44:22 +00:00
.drone.yml updated .drone.yml 2021-02-01 20:52:56 +01:00
.gitignore added first files 2021-01-27 18:13:48 +01:00
Dockerfile Update dependency tor to v0.4.4.8-r0 2021-03-17 05:01:14 +00:00
entrypoint.sh updated README.md and entrypoint.sh 2021-01-27 23:32:19 +01:00
LICENSE Initial commit 2021-01-26 22:29:34 +00:00
README.md updated README.md and entrypoint.sh 2021-01-27 23:32:19 +01:00
renovate.json Update 'renovate.json' 2021-02-01 20:26:49 +00:00

Tor Hidden Service Proxy

Build Status License Docker Pulls

A Tor Hidden Service Proxy for any application. Used e.g. by searx.sp-codes.de at searxbi3f73mmdeb.onion

Usage

To run your app as a hidden service you need to provide the private key in the PRIVATE_KEY and the host which should be proxied in the REDIRECT environment variables. For example:

version: '3.4'

services:
  myservice:
    image: nginx
    networks:
      - mynet

  tor:
    image: spcodes/hidden-service
    networks:
      - mynet
    depends_on:
      - myservice
    environment:
        REDIRECT: "myservice:80"
        PRIVATE_KEY: |
          -----BEGIN RSA PRIVATE KEY-----
          ...
          -----END RSA PRIVATE KEY-----

networks:
  mynet:
    driver: 'bridge'

To generate the private key you can use strm/tor-hiddenservice-nginx like this:

docker run -it --rm -v $(pwd)/web:/web \
       strm/tor-hiddenservice-nginx generate <pattern>

As pattern, you can provide a regex to generate the name of your hidden service. For more details see https://github.com/opsxcq/docker-tor-hiddenservice-nginx

License

GNU AGPLv3 Image

This project is Free Software: It is licensed under GNU AGPL v3 (See LICENSE for more information).