1
0
mirror of https://github.com/CCC-MF/bwhc-kafka-rest-proxy.git synced 2025-04-19 19:16:51 +00:00

feat: use ipv6 capable default listener address

This commit is contained in:
Paul-Christian Volkmer 2024-03-14 12:10:58 +01:00
parent 7b36255e2d
commit bbeba1f942
2 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ Options:
--token <TOKEN> --token <TOKEN>
bcrypt hashed Security Token [env: APP_SECURITY_TOKEN=] bcrypt hashed Security Token [env: APP_SECURITY_TOKEN=]
--listen <LISTEN> --listen <LISTEN>
Address and port for HTTP requests [env: APP_LISTEN=] [default: 0.0.0.0:3000] Address and port for HTTP requests [env: APP_LISTEN=] [default: [::]:3000]
``` ```
Die Anwendung lässt sich auch mit Umgebungsvariablen konfigurieren. Die Anwendung lässt sich auch mit Umgebungsvariablen konfigurieren.
@ -34,7 +34,7 @@ Die Anwendung lässt sich auch mit Umgebungsvariablen konfigurieren.
* `APP_KAFKA_SERVERS`: Zu verwendende Kafka-Bootstrap-Server als kommagetrennte Liste * `APP_KAFKA_SERVERS`: Zu verwendende Kafka-Bootstrap-Server als kommagetrennte Liste
* `APP_KAFKA_TOPIC`: Zu verwendendes Topic zum Warten auf neue Anfragen. Standardwert: `etl-processor_input` * `APP_KAFKA_TOPIC`: Zu verwendendes Topic zum Warten auf neue Anfragen. Standardwert: `etl-processor_input`
* `APP_SECURITY_TOKEN`: Verpflichtende Angabe es Tokens als *bcrypt*-Hash * `APP_SECURITY_TOKEN`: Verpflichtende Angabe es Tokens als *bcrypt*-Hash
* `APP_LISTEN`: Adresse und Port für eingehende HTTP-Requests. Standardwert: `0.0.0.0:3000` - Port `3000` auf allen Adressen * `APP_LISTEN`: Adresse und Port für eingehende HTTP-Requests. Standardwert: `[::]:3000` - Port `3000` auf allen Adressen (IPv4 und IPv6)
## HTTP-Requests ## HTTP-Requests

View File

@ -30,7 +30,7 @@ pub struct Cli {
#[arg( #[arg(
long, long,
env = "APP_LISTEN", env = "APP_LISTEN",
default_value = "0.0.0.0:3000", default_value = "[::]:3000",
help = "Address and port for HTTP requests" help = "Address and port for HTTP requests"
)] )]
pub listen: String, pub listen: String,