add i2pd configuration to support companion on i2p

This commit is contained in:
Fijxu 2025-04-06 01:07:31 -04:00
parent 71e2e3352c
commit 8236296525
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4
4 changed files with 65 additions and 2 deletions

View file

@ -24,6 +24,20 @@ services:
- "${REVERSEPROXY_PUBLIC_PORT}:443/tcp"
- "${REVERSEPROXY_METRICS_PORT}:10000/tcp"
i2p:
image: ghcr.io/purplei2p/i2pd:latest
<<: *common-elements
networks:
proxy-server:
ipv4_address: 172.50.0.5
# Temporary root user until I make my own I2Pd image
user: 0:0
volumes:
- ./i2pd_data:/home/i2pd/data
ports:
- "127.0.0.1:7070:7070/tcp"
- "51023:51023/tcp"
companion:
<<: *common-elements
extends:

View file

@ -55,8 +55,6 @@ frontend www
http-request set-bandwidth-limit video-streaming if h || hh
http-request redirect scheme https unless { ssl_fc }
acl health_check path /health
http-request return status 200 if health_check

46
i2pd_data/i2pd.conf Normal file
View file

@ -0,0 +1,46 @@
log = stdout
loglevel = error
ipv4 = true
ipv6 = false
port = 51023
bandwidth = X
share = 5
[ntcp2]
enabled = true
published = true
[ssu2]
enabled = true
published = true
[http]
enabled = true
address = 0.0.0.0
port = 7070
# To prevent "host mismatch" when opening the WebUI
strictheaders = false
[httpproxy]
enabled = false
address = 0.0.0.0
port = 4444
[socksproxy]
enabled = false
address = 0.0.0.0
port = 4447
[sam]
enabled = false
address = 0.0.0.0
port = 7656
[upnp]
enabled = false
[reseed]
verify = true

5
i2pd_data/tunnels.conf Normal file
View file

@ -0,0 +1,5 @@
[companion]
type=http
host=172.50.0.2
port=80
keys=key.dat