add comments, maybe shake Github

This commit is contained in:
Matt Hill
2023-05-11 07:53:51 -06:00
parent f294726c0d
commit df2ca832c5

View File

@@ -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<ConfigSpecOf<SmtpValue>, never, never>({
server: Value.text({
name: "SMTP Server",
@@ -43,6 +46,9 @@ export const customSmtp = Config.of<ConfigSpecOf<SmtpValue>, 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()