mirror of
https://github.com/ProjectSegfault/website.git
synced 2024-06-13 16:21:58 +05:30
24 lines
369 B
TypeScript
24 lines
369 B
TypeScript
import { parse } from "yaml";
|
|
import fs from "fs";
|
|
|
|
interface Config {
|
|
db: {
|
|
url: string;
|
|
};
|
|
app: {
|
|
auth: {
|
|
clientId: string;
|
|
clientSecret: string;
|
|
issuer: string;
|
|
}
|
|
hcaptcha: {
|
|
secret: string;
|
|
sitekey: string;
|
|
};
|
|
webhook: string;
|
|
};
|
|
}
|
|
|
|
const config: Config = parse(fs.readFileSync("./config/config.yml", "utf8"));
|
|
|
|
export default config; |