mirror of
https://github.com/cmehay/docker-tor-hidden-service.git
synced 2025-04-22 23:09:11 +00:00
Compare commits
9 commits
v0.4.6.10-
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
1dbcebdee3 | ||
|
4b38fef7a3 | ||
|
57f8867341 | ||
|
7ccc5df943 | ||
|
35ee048126 | ||
|
8896142fc4 | ||
|
6d1320f29b | ||
|
2fc69d3ff1 | ||
|
f801929085 |
10 changed files with 730 additions and 732 deletions
|
@ -2,3 +2,5 @@ keys/
|
||||||
*.egg-info
|
*.egg-info
|
||||||
.tox/
|
.tox/
|
||||||
__cache__
|
__cache__
|
||||||
|
__pycache__
|
||||||
|
*/__pycache__
|
|
@ -1,4 +1,4 @@
|
||||||
FROM python:3.9-alpine
|
FROM python:3.10-alpine
|
||||||
|
|
||||||
# if omitted, the versions are determined from the git tags
|
# if omitted, the versions are determined from the git tags
|
||||||
ARG tor_version
|
ARG tor_version
|
||||||
|
|
5
Makefile
5
Makefile
|
@ -53,3 +53,8 @@ run-vanguards: build
|
||||||
|
|
||||||
run-vanguards-network: build
|
run-vanguards-network: build
|
||||||
docker-compose -f docker-compose.vanguards-network.yml up --force-recreate
|
docker-compose -f docker-compose.vanguards-network.yml up --force-recreate
|
||||||
|
|
||||||
|
publish: build
|
||||||
|
docker tag goldy/tor-hidden-service:$(CUR_TAG) goldy/tor-hidden-service:latest
|
||||||
|
docker push goldy/tor-hidden-service:$(CUR_TAG)
|
||||||
|
docker push goldy/tor-hidden-service:latest
|
||||||
|
|
|
@ -4,6 +4,13 @@
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
|
* 26 jul 2022
|
||||||
|
* Update `onions` tool to v0.7.1:
|
||||||
|
* Fix an issue when restarting a container with control port enabled
|
||||||
|
* Updated to python 3.10
|
||||||
|
* Fix a typo in `docker-compose.vanguards-network.yml`, it works now
|
||||||
|
* Update `tor` to `0.4.7.8`
|
||||||
|
|
||||||
* 23 dec 2021
|
* 23 dec 2021
|
||||||
* Update `onions` tool to v0.7.0:
|
* Update `onions` tool to v0.7.0:
|
||||||
* Drop support of onion v2 adresses as tor network does not accept them anymore
|
* Drop support of onion v2 adresses as tor network does not accept them anymore
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
0.4.6.10
|
0.4.7.12
|
||||||
|
|
|
@ -8,7 +8,7 @@ services:
|
||||||
environment:
|
environment:
|
||||||
# Enable control port with ip binding (see networks configuration bellow)
|
# Enable control port with ip binding (see networks configuration bellow)
|
||||||
# Using network interface instead of 0.0.0.0 help to protect control port from hidden services.
|
# Using network interface instead of 0.0.0.0 help to protect control port from hidden services.
|
||||||
TOR_CONTROL_PORT: 127.16.111.10
|
TOR_CONTROL_PORT: 172.16.111.10
|
||||||
# Set controle port password (optionnal)
|
# Set controle port password (optionnal)
|
||||||
TOR_CONTROL_PASSWORD: something_secret
|
TOR_CONTROL_PASSWORD: something_secret
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ services:
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
# Set tor hostname (or ip:port or unix:/path/to/socket.sock)
|
# Set tor hostname (or ip:port or unix:/path/to/socket.sock)
|
||||||
TOR_CONTROL_PORT: tor
|
TOR_CONTROL_PORT: tor:9051
|
||||||
# set password if needed
|
# set password if needed
|
||||||
TOR_CONTROL_PASSWORD: something_secret
|
TOR_CONTROL_PASSWORD: something_secret
|
||||||
|
|
||||||
|
|
|
@ -57,9 +57,10 @@ class Setup(object):
|
||||||
self.setup[host]['ports'][host].append(port)
|
self.setup[host]['ports'][host].append(port)
|
||||||
|
|
||||||
def _hash_control_port_password(self, password):
|
def _hash_control_port_password(self, password):
|
||||||
self.control_hashed_password = subprocess.check_output([
|
self.control_hashed_password = subprocess.check_output(
|
||||||
'tor', '--quiet', '--hash-password', password
|
['/usr/local/bin/tor', '--quiet', '--hash-password', password],
|
||||||
]).decode()
|
env={'HOME': '/tmp'}
|
||||||
|
).decode()
|
||||||
|
|
||||||
def _parse_control_port_variable(self, check_ip=True):
|
def _parse_control_port_variable(self, check_ip=True):
|
||||||
control_port = os.environ['TOR_CONTROL_PORT']
|
control_port = os.environ['TOR_CONTROL_PORT']
|
||||||
|
|
1399
poetry.lock
generated
1399
poetry.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "docker-tor-hidden-service"
|
name = "docker-tor-hidden-service"
|
||||||
version = "0.7.0"
|
version = "0.7.1"
|
||||||
description = "Display onion sites hosted"
|
description = "Display onion sites hosted"
|
||||||
authors = ["Christophe Mehay <cmehay@nospam.student.42.fr>"]
|
authors = ["Christophe Mehay <cmehay@nospam.student.42.fr>"]
|
||||||
license = "WTFPL"
|
license = "WTFPL"
|
||||||
|
@ -23,24 +23,24 @@ packages = [
|
||||||
onions = "onions:main"
|
onions = "onions:main"
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = ">=3.8,<3.10"
|
python = ">=3.10,<3.11"
|
||||||
pytor = "^0.1.7"
|
Jinja2 = ">=2.10"
|
||||||
Jinja2 = "^2.10"
|
importlib_metadata = ">=1.6.0"
|
||||||
pyentrypoint = "^0.7.4"
|
|
||||||
importlib_metadata = "^1.6.0"
|
|
||||||
vanguards = "^0.3.1"
|
vanguards = "^0.3.1"
|
||||||
ipy = "^1.00"
|
ipy = ">=1.00"
|
||||||
|
pytor = '^0.1.9'
|
||||||
|
pyentrypoint = "^0.8.0"
|
||||||
|
|
||||||
[tool.poetry.dev-dependencies]
|
[tool.poetry.dev-dependencies]
|
||||||
autopep8 = "^1.5.2"
|
autopep8 = ">=1.5.2"
|
||||||
tox = "^3.15.0"
|
tox = ">=3.15.0"
|
||||||
cryptography = "^3.2"
|
cryptography = ">=3.2"
|
||||||
pylint = "^2.5.2"
|
pylint = ">=2.5.2"
|
||||||
ptpython = "^3.0.2"
|
ptpython = ">=3.0.2"
|
||||||
black = "^19.10b0"
|
black = ">=22.6.0"
|
||||||
pre-commit = "^2.3.0"
|
pre-commit = "^2.20.0"
|
||||||
pytest = "^5.4.2"
|
pytest = ">=5.4.2"
|
||||||
pyfakefs = "^4.0.2"
|
pyfakefs = ">=4.0.2"
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry>=0.12"]
|
requires = ["poetry>=0.12"]
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -1,6 +1,6 @@
|
||||||
[tox]
|
[tox]
|
||||||
isolated_build = true
|
isolated_build = true
|
||||||
envlist = py39
|
envlist = py310
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
whitelist_externals = poetry
|
whitelist_externals = poetry
|
||||||
|
|
Loading…
Add table
Reference in a new issue