Skip to content

Commit

Permalink
add runtime params for agent support QUIC
Browse files Browse the repository at this point in the history
  • Loading branch information
hieulq committed Dec 19, 2023
1 parent eab6ded commit fa62bcf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: 8xFF HA relayer agent
description: Decentralized HomeAssistant Proxy
version: 0.1.5
version: 0.1.6
slug: 8xff_ha_relayer
init: false
host_network: true
Expand All @@ -17,13 +17,13 @@ arch:
- i386
options:
connector_addr: 127.0.0.1:33333
connector-protocol: tcp
connector_protocol: tcp
http_dest: 127.0.0.1:8080
https_dest: 127.0.0.1:8443
local_key: 8xff.pem
schema:
connector_addr: str
connector-protocol: str
connector_protocol: str
http_dest: str
https_dest: str
local_key: str
4 changes: 3 additions & 1 deletion data/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
set -e

RELAY_SERVER=$(bashio::config 'tcp_connector_addr')
PROTOCOL=$(bashio::config 'connector_protocol')
HTTP_DEST=$(bashio::config 'http_dest')
HTTPS_DEST=$(bashio::config 'https_dest')
KEYFILE="/ssl/$(bashio::config 'local_key')"

bashio::log.info "Starting 8xFF Agent..."

exec /agent \
--tcp-connector-addr "$RELAY_SERVER" \
--connector-addr "$RELAY_SERVER" \
--connector-protocol "$PROTOCOL" \
--http-dest "$HTTP_DEST" \
--https-dest "$HTTPS_DEST" \
--local-key "$KEYFILE" \
Expand Down
2 changes: 1 addition & 1 deletion translations/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ configuration:
name: Relay server address
description: >-
8xFF Relay Server address in format IP:port, default to 127.0.0.1:33333
connector-protocol:
connector_protocol:
name: Relay server protocol
description: >-
Protocol of 8xFF Relay server, possible values: tcp, quic, default to tcp
Expand Down

0 comments on commit fa62bcf

Please sign in to comment.