diff --git a/lib/config/configConstants.ts b/lib/config/configConstants.ts index 4e0c7ef..aee70f7 100644 --- a/lib/config/configConstants.ts +++ b/lib/config/configConstants.ts @@ -3,6 +3,9 @@ import { Config, ConfigSpecOf } from "./builder/config" import { Value } from "./builder/value" import { Variants } from "./builder/variants" +/** + * Base SMTP settings, to be used by StartOS for system wide SMTP + */ export const customSmtp = Config.of, never, never>({ server: Value.text({ name: "SMTP Server", @@ -43,6 +46,9 @@ export const customSmtp = Config.of, never, never>({ }), }) +/** + * For service config. Gives users 3 options for SMTP: (1) disabled, (2) use system SMTP settings, (3) use custom SMTP settings + */ export const smtpConfig = Value.filteredUnion( async ({ effects, utils }) => { const smtp = await utils.getSystemSmtp().once()