We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82d9318 commit fb2625dCopy full SHA for fb2625d
src/node/cli.ts
@@ -502,7 +502,17 @@ export async function setDefaults(cliArgs: Args, configArgs?: ConfigArgs): Promi
502
} as DefaultedArgs // TODO: Technically no guarantee this is fulfilled.
503
}
504
505
-async function defaultConfigFile(): Promise<string> {
+/**
506
+ * Helper function to return the default config file.
507
+ *
508
+ * @returns The default config file:
509
510
+ * - bind-addr: 127.0.0.1:8080
511
+ * - auth: password
512
+ * - password: <generated-password>
513
+ * - cert: false
514
+ */
515
+export async function defaultConfigFile(): Promise<string> {
516
return `bind-addr: 127.0.0.1:8080
517
auth: password
518
password: ${await generatePassword()}
0 commit comments