项目作者: nwtgck

项目描述 :
Trans server as Tor Hidden Service
高级语言: Dockerfile
项目地址: git://github.com/nwtgck/trans-server-tor-docker-compose.git
创建时间: 2018-08-04T16:27:15Z
项目社区:https://github.com/nwtgck/trans-server-tor-docker-compose

开源协议:

下载


trans-server-tor-docker-compose

Trans server as Tor Hidden Service

Run server

Here is how to run Trans server as Tor Hidden Service.

  1. # Go to this repo
  2. cd <this repo>
  3. # Initialize "tor_hidden_service" for docker volume sharing
  4. sudo ./init_shared_tor_hidden_service.sh
  5. # Run the server
  6. docker-compose up

(NOTE: sudo is not necessary if you use Docker For Mac)

Data Persistence

All data for persistence are under ./docker_volumes.

Check host name

You can check server’s host name by

  1. cat docker_volumes/tor_hidden_service/hostname

Access to the server

You can send a file by like the following.

  1. torsocks curl -T ./mytext.txt http://yhxhvqs46f6bxfxc.onion

Or you can access to the page like the following on Tor Browser.

demo1

(NOTE: You should replace hostname with yours)

HTTPS access

HTTPS is also available in this docker-compose.

You should add -k or --insecure to curl option.

  1. torsocks curl -k -T ./mytext.txt https://yhxhvqs46f6bxfxc.onion