From f3aa70e422b67376e08fd7fe4e9ed0bc6cc34237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Aparicio?= Date: Tue, 6 Sep 2016 10:54:30 +0100 Subject: [PATCH] refactor(cli): update flag description --- imaginary.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imaginary.go b/imaginary.go index 7a6a349..fd63cd7 100644 --- a/imaginary.go +++ b/imaginary.go @@ -25,7 +25,7 @@ var ( aHelpl = flag.Bool("help", false, "Show help") aCors = flag.Bool("cors", false, "Enable CORS support") aGzip = flag.Bool("gzip", false, "Enable gzip compression") - aAuthForwarding = flag.Bool("enable-auth-forwarding", false, "Forwards Authorization or X-Forward-Authorization headers to the image source server. -enable-url-source flag must be defined") + aAuthForwarding = flag.Bool("enable-auth-forwarding", false, "Forwards X-Forward-Authorization or Authorization header to the image source server. -enable-url-source flag must be defined. Tip: secure your server from public access to prevent attack vectors") aEnableURLSource = flag.Bool("enable-url-source", false, "Enable remote HTTP URL image source processing") aAlloweOrigins = flag.String("allowed-origins", "", "Restrict remote image source processing to certain origins (separated by commas)") aKey = flag.String("key", "", "Define API key for authorization") @@ -68,7 +68,7 @@ Options: -http-read-timeout HTTP read timeout in seconds [default: 30] -http-write-timeout HTTP write timeout in seconds [default: 30] -enable-url-source Restrict remote image source processing to certain origins (separated by commas) - -enable-auth-forwarding Forwards Authorization or X-Forward-Authorization headers to the image source server. -enable-url-source flag must be defined + -enable-auth-forwarding Forwards X-Forward-Authorization or Authorization header to the image source server. -enable-url-source flag must be defined. Tip: secure your server from public access to prevent attack vectors -allowed-origins TLS certificate file path -certfile TLS certificate file path -keyfile TLS private key file path