mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-25 03:49:11 +00:00
* feat(api): add /sync-from-legacy route * chore: remove extraneous dockerfile * chore: remove extraneous dockerfile build * chore: remove extraneous dockerfile build matrix
15 lines
645 B
TypeScript
15 lines
645 B
TypeScript
const self = (global as any) as Record<string, string>;
|
|
|
|
const env = (key: string) => self[key] ?? '';
|
|
|
|
const safeURI = (x: string) => x.replace(/\/$/, '');
|
|
const list = (x: string) => x.split(',');
|
|
|
|
export const botClientID = env('BOT_CLIENT_ID');
|
|
export const botClientSecret = env('BOT_CLIENT_SECRET');
|
|
export const botToken = env('BOT_TOKEN');
|
|
export const uiPublicURI = safeURI(env('UI_PUBLIC_URI'));
|
|
export const apiPublicURI = safeURI(env('API_PUBLIC_URI'));
|
|
export const rootUsers = list(env('ROOT_USERS'));
|
|
export const allowedCallbackHosts = list(env('ALLOWED_CALLBACK_HOSTS'));
|
|
export const importSharedKey = env('BOT_IMPORT_TOKEN');
|