Budibase is an open-source low-code platform for creating internal apps in minutes. Supports PostgreSQL, MySQL, MSSQL, MongoDB, Rest API, Docker, K8s 🚀
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

46 lines
1.5 KiB

"use strict";
const { Configs } = require("../../constants");
const { utils } = require("@budibase/backend-core");
exports.oidc = conf => {
return {
type: Configs.OIDC,
config: {
configs: [
Object.assign({ configUrl: "http://someconfigurl", clientID: "clientId", clientSecret: "clientSecret", logo: "Microsoft", name: "Active Directory", uuid: utils.newid(), activated: true }, conf),
],
},
};
};
exports.google = conf => {
return {
type: Configs.GOOGLE,
config: Object.assign({ clientID: "clientId", clientSecret: "clientSecret", activated: true }, conf),
};
};
exports.smtp = conf => {
return {
type: Configs.SMTP,
config: Object.assign({ port: 12345, host: "smtptesthost.com", from: "testfrom@test.com", subject: "Hello!", secure: false }, conf),
};
};
exports.smtpEthereal = () => {
return {
type: Configs.SMTP,
config: {
port: 587,
host: "smtp.ethereal.email",
secure: false,
auth: {
user: "don.bahringer@ethereal.email",
pass: "yCKSH8rWyUPbnhGYk9",
},
connectionTimeout: 1000, // must be less than the jest default of 5000
},
};
};
exports.settings = conf => {
return {
type: Configs.SETTINGS,
config: Object.assign({ platformUrl: "http://localhost:10000", logoUrl: "", company: "Budibase" }, conf),
};
};