mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 02:11:56 +00:00
add comments, maybe shake Github
This commit is contained in:
@@ -3,6 +3,9 @@ import { Config, ConfigSpecOf } from "./builder/config"
|
|||||||
import { Value } from "./builder/value"
|
import { Value } from "./builder/value"
|
||||||
import { Variants } from "./builder/variants"
|
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>({
|
export const customSmtp = Config.of<ConfigSpecOf<SmtpValue>, never, never>({
|
||||||
server: Value.text({
|
server: Value.text({
|
||||||
name: "SMTP Server",
|
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(
|
export const smtpConfig = Value.filteredUnion(
|
||||||
async ({ effects, utils }) => {
|
async ({ effects, utils }) => {
|
||||||
const smtp = await utils.getSystemSmtp().once()
|
const smtp = await utils.getSystemSmtp().once()
|
||||||
|
|||||||
Reference in New Issue
Block a user