{"id":13437856,"url":"https://github.com/opsxcq/docker-tor-hiddenservice-nginx","last_synced_at":"2025-03-19T18:30:53.803Z","repository":{"id":44770718,"uuid":"72794144","full_name":"opsxcq/docker-tor-hiddenservice-nginx","owner":"opsxcq","description":"Easily setup a hidden service inside the Tor network","archived":false,"fork":false,"pushed_at":"2023-11-02T16:52:59.000Z","size":143,"stargazers_count":169,"open_issues_count":2,"forks_count":51,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-10-27T23:23:39.860Z","etag":null,"topics":["anonimity","docker","hidden","hidden-services","privacy","security","tor","tor-network"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opsxcq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2016-11-03T22:56:14.000Z","updated_at":"2024-09-19T11:50:29.000Z","dependencies_parsed_at":"2024-04-23T19:06:11.679Z","dependency_job_id":"b4ddc61b-a504-44ee-8ede-0cf8f7be234a","html_url":"https://github.com/opsxcq/docker-tor-hiddenservice-nginx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsxcq%2Fdocker-tor-hiddenservice-nginx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsxcq%2Fdocker-tor-hiddenservice-nginx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsxcq%2Fdocker-tor-hiddenservice-nginx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsxcq%2Fdocker-tor-hiddenservice-nginx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opsxcq","download_url":"https://codeload.github.com/opsxcq/docker-tor-hiddenservice-nginx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244483155,"owners_count":20460068,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anonimity","docker","hidden","hidden-services","privacy","security","tor","tor-network"],"created_at":"2024-07-31T03:01:00.722Z","updated_at":"2025-03-19T18:30:53.516Z","avatar_url":"https://github.com/opsxcq.png","language":"C","funding_links":[],"categories":["C","\u003ca id=\"6e80463404d46f0493cf6e84597e4b5c\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"e99ba5f3de02f68412b13ca718a0afb6\"\u003e\u003c/a\u003eTor\u0026\u0026\u0026Onion\u0026\u0026洋葱"],"readme":"# Easily create and run hidden services \n[![Docker Pulls](https://img.shields.io/docker/pulls/strm/tor-hiddenservice-nginx.svg?style=plastic)](https://hub.docker.com/r/strm/tor-hiddenservice-nginx/)\n![License](https://img.shields.io/badge/License-GPL-blue.svg?style=plastic)\n\n\nEasily run a hidden service inside the Tor network with this container\n\n\nGenerate the skeleton configuration for you hidden service, replace \u003cpattern\u003e\nfor your hidden service pattern name. Example, if you want to your hidden\nservice contain the word 'boss', just use this word as argument. You can use\nregular expressions, like ```^boss```, will generate an address wich will start\nwith 'boss'. Be aware that bigger the pattern, more time it will take to\ngenerate it.\n\n```sh\ndocker run -it --rm -v $(pwd)/web:/web \\\n       strm/tor-hiddenservice-nginx generate \u003cpattern\u003e\n```\n\n\nCreate an container named 'hiddensite' to serve your generated hidden service\n\n```sh\ndocker run -d --restart=always --name hiddensite -v $(pwd)/web:/web \\\n       strm/tor-hiddenservice-nginx \n```\n\n## Example\n\nLet's create a hidden service with the name beginning with strm.\n\n```sh\ndocker pull strm/tor-hiddenservice-nginx\n```\n\nWait to the container image be downloaded. And them we can generate our site\nskeleton:\n\n```sh\n$docker run -it --rm -v $(pwd)/web:/web strm/tor-hiddenservice-nginx generate ^strm\n[+] Generating the address with mask: ^strm\n[+] Found matching domain after 137072 tries: strmfyygjp5st54g.onion\n[+] Generating nginx configuration for site  strmfyygjp5st54g.onion\n[+] Creating www folder\n[+] Generating index.html template\n```\n\nNow we have our skeleton generated, we can run the container with:\n\n```sh\ndocker run -d --restart=always --name hiddensite \\\n       -v $(pwd)/web:/web strm/tor-hiddenservice-nginx\n```\n\nAnd you have the service running ! :)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/opsxcq/docker-tor-hiddenservice-nginx/raw/master/print.png\" alt=\"print\"/\u003e\n  \u003c/p\u003e\n\n## Troubleshoot \n\n - 403 error on nginx, check your directory permissions and folder permissions.\n   Nginx run as \"hidden\" user, his UID is 666, just check if you give this user\n   access to the /web/www folder (in the case the folder mapped to it).\n   \n# FAQ\n\n## Anti-Pattern\n\nWhile is not a good thing to run everything in one container, this is a easy way\nto get started if you don't have that much experience with docker and hidden\nservices. If you want to use something more elaborated, check this\n[repository](https://github.com/opsxcq/docker-tor).\n\nHere is an example of how a deploy using this other image looks like.\n\n```yml\nversion: '3'\n\nservices:\n  tor:\n    image: strm/tor\n    restart: always\n    depends_on:\n      - backend\n    environment:\n        LISTEN_PORT: \"80\"\n        REDIRECT: \"backend:80\"\n        PRIVATE_KEY: |\n          -----BEGIN RSA PRIVATE KEY-----\n          MIICXQIBAAKBgQDSqBzjGxL+UFdrFJSdc+LJn3RrXiaZ7k6kgSw8KqOCSRgIr2qO\n          XZrCa3YHE+PqsfbDVF0GO0Xy3A9fsIxRFMUo3K++3BaVJslUbqK2TH9fJt5Ji1b6\n          N5UzXsEzf73atXwMF63hgVFZFLhfSWH8jGE1svwDXn0YQWP88PVX34SrWQIDASsd\n          AoGAUWdd+/m9TrTQyqK0IbzIr0fYQ5gDq4mv1GLEYjR4SWF8pSCxL1yOBsmQ02sj\n          BSS2Vw4dpFfloCrRw2ipM8ac4kdLGCoYefQHwW2Kfdf9raVfPDP7vcxrs37sOgOh\n          2rSXCOOrmcoMrEka2/OTGW15jaNUEEoWacS3YL1Fj0Bi6g0CQQD4ZmBiF6qu2XnT\n          8lMr1Asdz3K8fYiyfl6CzHItUubAbQ8ipv12q8CerJqk3dO98V+w8llAsQ7BT5wq\n          8AZOPQR3AkEA2RobnACDvb2Jw+dYSFsqrHyIDojKsrNiDEFedkiFijRFqme+nrif\n          kJ4yTnSiphC+rSSBbvYMawsqiWBA7UPSrwJBAKXSVQClxNUpJ2PZt91HZAtuipRt\n          t8suGIY4mot1iDRN0XdiNN8TNZ3qLag7wUU4or+Yn/3Xae1euHpyftTxmYsCQQCd\n          oJxsGotYx62ULxPqz0um7yEWOU6hUAy8MB3X3FcTCjGO0PPKpfJ2ntXo0Ajcp5ci\n          msi81/e9DTnF9mPjtsY9AkAUG6heBlETMFzyka9FHPgu9aN2kRwvJ3QZDHuPxYG4\n          VZwljLxstlx57+N74D0aj6wrJw+iBH2BI+b+ZpnLXyy7\n          -----END RSA PRIVATE KEY-----\n```\n\nTo make it work you should also add a webserver with the name `backend`, and add\nyour content there. There are more moving pieces using a deploy like this, so\nthis is the justification for this repository, for people who never put anything\non the deep web being able to enjoy it without busting their asses debugging\nsome infrastructure.\n\n\n## Build\n\n```\ndocker build -t strm/tor-hiddenservice-nginx .\n```\n\n## Run\n\n```\ndocker run -d --restart=always --name hiddensite \\\n       -v $(pwd)/web:/web strm/tor-hiddenservice-nginx \n\n```\n## Shell\n\n```\ndocker run -it --rm -v $(pwd)/web:/web \\\n       --entrypoint /bin/bash strm/tor-hiddenservice-nginx\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopsxcq%2Fdocker-tor-hiddenservice-nginx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopsxcq%2Fdocker-tor-hiddenservice-nginx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopsxcq%2Fdocker-tor-hiddenservice-nginx/lists"}