feat: add sam bridge port option to i2p

This commit is contained in:
Artur
2025-04-14 15:05:41 -03:00
parent 7d1ba0298c
commit dfbefdea18
5 changed files with 49 additions and 1 deletions

View File

@@ -30,4 +30,4 @@ sources:
- https://github.com/i2p/i2p.i2p
title: I2P
train: community
version: 1.0.1
version: 1.1.0

View File

@@ -8,6 +8,7 @@ consts:
router_console_port_number: 7657
http_proxy_port_number: 4444
https_proxy_port_number: 4445
sam_bridge_port_number: 7656
run_as_user: 0
run_as_group: 0

View File

@@ -150,6 +150,49 @@ questions:
required: true
$ref:
- definitions/node_bind_ip
- variable: sam_bridge_port
label: I2P SAM Bridge Port
description: |
SAM Bridge needs to be enabled in the client settings of I2P Router Console.
schema:
type: dict
attrs:
- variable: bind_mode
label: Port Bind Mode
schema:
type: string
default: "published"
enum:
- value: "published"
description: Publish port on the host for external access
- value: "exposed"
description: Expose port for inter-container communication
- value: ""
description: None
- variable: port_number
label: Port Number
schema:
type: int
show_if: [["bind_mode", "=", "published"]]
default: 7656
required: true
$ref:
- definitions/port
- variable: host_ips
label: Host IPs
description: IPs on the host to bind this port
schema:
type: list
show_if: [["bind_mode", "=", "published"]]
default: []
items:
- variable: host_ip
label: Host IP
schema:
type: string
required: true
$ref:
- definitions/node_bind_ip
- variable: additional_ports
label: Additional Ports
schema:

View File

@@ -13,6 +13,7 @@
{% do c1.add_port(values.network.router_console_port, {"container_port": values.consts.router_console_port_number}) %}
{% do c1.add_port(values.network.http_proxy_port, {"container_port": values.consts.http_proxy_port_number}) %}
{% do c1.add_port(values.network.https_proxy_port, {"container_port": values.consts.https_proxy_port_number}) %}
{% do c1.add_port(values.network.sam_bridge_port, {"container_port": values.consts.sam_bridge_port_number}) %}
{% for port in values.network.additional_ports %}
{% do c1.add_port(port) %}
{% endfor %}

View File

@@ -15,6 +15,9 @@ network:
https_proxy_port:
bind_mode: "published"
port_number: 4445
sam_bridge_port:
bind_mode: "published"
port_number: 7656
additional_ports: []
ix_volumes: