diff --git a/config.schema.json b/config.schema.json index fa3af02ac..3fa355262 100644 --- a/config.schema.json +++ b/config.schema.json @@ -203,16 +203,12 @@ "requestHeaders": { "type": [ "object" - ], - "noCLI": true, - "noEnv": true + ] }, "requestQueryParameters": { "type": [ "object" - ], - "noCLI": true, - "noEnv": true + ] }, "socialSharing": { "type": [ @@ -240,9 +236,7 @@ { "$ref": "https://stac-extensions.github.io/authentication/v1.1.0/schema.json" } - ], - "noCLI": true, - "noEnv": true + ] } } } diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index 4cc2a3316..a40a57fd9 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -76,7 +76,7 @@ env -0 | cut -f1 -d= | tr '\0' '\n' | grep "^SB_" | { boolean) bool "$value" ;; - integer | number) + integer | number | object) object "$value" ;; array) diff --git a/docs/options.md b/docs/options.md index 84c84ec40..5b54d8c75 100644 --- a/docs/options.md +++ b/docs/options.md @@ -285,8 +285,6 @@ This is affected by [`allowedDomains`](#alloweddomains). Example: `{'Authorization': 'Bearer 134567984623223'}` adds a Bearer token to the HTTP headers. -Please note that this option can only be provided through a config file and is not available via CLI/ENV. - ## requestQueryParameters ***experimental*** @@ -296,8 +294,6 @@ This is affected by [`allowedDomains`](#alloweddomains). Example: `{'f': 'json'}` adds a `f` query parameter to the HTTP URL, e.g. `https://example.com?f=json`. -Please note that this option can only be provided through a config file and is not available via CLI/ENV. - ## socialSharing Lists the social sharing service for which buttons should be shown in the "Share" panel. @@ -335,8 +331,6 @@ In addition the following properties are supported: Authentication is generally affected by the [`allowedDomains`](#alloweddomains) option. -The `authConfig` option can only be provided through a config file and is not available via CLI/ENV. - ### API Keys API keys can be configured to be sent via HTTP header or query parameter: diff --git a/vue.config.js b/vue.config.js index 569107c77..2d2dca4ab 100644 --- a/vue.config.js +++ b/vue.config.js @@ -15,6 +15,11 @@ const argv = yargs(hideBin(process.argv)) .boolean(optionsForType("boolean")) .number(optionsForType("number").concat(optionsForType("integer"))) .array(optionsForType("array")) + .option( + Object.fromEntries( + optionsForType("object").map((k) => [k, { coerce: JSON.parse }]) + ) + ) .argv; // Clean-up arguments delete argv._;