From a79d7978882d31b83a1be28d606af6ac29dd1563 Mon Sep 17 00:00:00 2001 From: Denys Bohdan Date: Tue, 18 Jun 2024 15:02:14 +0200 Subject: [PATCH] STCLI-246 Update some token and proxy-related defaults --- doc/commands.md | 2 +- lib/commands/common-options.js | 1 + lib/platform/tenant-config.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/commands.md b/doc/commands.md index 3a4a170..94f1e6e 100644 --- a/doc/commands.md +++ b/doc/commands.md @@ -1148,7 +1148,7 @@ Serve a build previously created with "stripes build": ``` $ stripes serve --existing-build output ``` -Serve a platform with a local proxy server that points to remove okapi server: +Serve a platform with a local proxy server that points to a remote okapi server: ``` $ stripes serve --startProxy --proxyPort 3010 --okapi http://some-okapi-server.folio.org ``` diff --git a/lib/commands/common-options.js b/lib/commands/common-options.js index f350460..00b8bbb 100644 --- a/lib/commands/common-options.js +++ b/lib/commands/common-options.js @@ -8,6 +8,7 @@ module.exports.serverOptions = { startProxy: { type: 'boolean', describe: 'Start a proxy server', + default: false, group: 'Server Options:', }, proxyPort: { diff --git a/lib/platform/tenant-config.js b/lib/platform/tenant-config.js index 5b0e086..ee6f4f6 100644 --- a/lib/platform/tenant-config.js +++ b/lib/platform/tenant-config.js @@ -11,7 +11,7 @@ const defaultConfig = { showPerms: false, hasAllPerms: false, languages: ['en'], - useSecureTokens: false, + useSecureTokens: true, }, modules: { },