From b3700c72510228a69e877285c258d69df2614981 Mon Sep 17 00:00:00 2001 From: Ulric Qin Date: Wed, 2 Nov 2022 08:34:49 +0800 Subject: [PATCH] add Headers configuration demo --- etc/server.conf | 1 + etc/webapi.conf | 1 + 2 files changed, 2 insertions(+) diff --git a/etc/server.conf b/etc/server.conf index f8ffcab9..59520156 100644 --- a/etc/server.conf +++ b/etc/server.conf @@ -178,6 +178,7 @@ BasicAuthUser = "" # Basic auth password BasicAuthPass = "" # timeout settings, unit: ms +Headers = ["X-From", "n9e"] Timeout = 10000 DialTimeout = 3000 TLSHandshakeTimeout = 30000 diff --git a/etc/webapi.conf b/etc/webapi.conf index b91fdad3..4f7254c9 100644 --- a/etc/webapi.conf +++ b/etc/webapi.conf @@ -204,6 +204,7 @@ BasicAuthPass = "" Timeout = 30000 DialTimeout = 3000 MaxIdleConnsPerHost = 100 +Headers = ["X-From", "n9e"] [Ibex] Address = "http://127.0.0.1:10090"