- Updated the README.md to include specific SMTP settings for Microsoft 365 and OAuth2 authentication options. - Modified the email handler to support OAuth2 authentication for Microsoft 365, improving security and flexibility. - Enhanced logging to provide clearer feedback on email configuration and authentication methods used.
28 lines
866 B
TypeScript
28 lines
866 B
TypeScript
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
|
|
/// <reference path="../.astro/types.d.ts" />
|
|
/// <reference types="astro/client" />
|
|
/// <reference types="vite/client" />
|
|
/// <reference types="../vendor/integration/types.d.ts" />
|
|
|
|
interface ImportMetaEnv {
|
|
readonly GITEA_TOKEN?: string;
|
|
readonly UPTIME_KUMA_URL?: string;
|
|
readonly SITE?: string;
|
|
readonly SMTP_HOST?: string;
|
|
readonly SMTP_PORT?: string;
|
|
readonly SMTP_USER?: string;
|
|
readonly SMTP_PASS?: string;
|
|
readonly ADMIN_EMAIL?: string;
|
|
readonly WEBSITE_NAME?: string;
|
|
readonly GEMINI_API_KEY?: string;
|
|
readonly MANUAL_REVIEW_SECRET?: string;
|
|
readonly OAUTH2_CLIENT_ID?: string;
|
|
readonly OAUTH2_CLIENT_SECRET?: string;
|
|
readonly OAUTH2_REFRESH_TOKEN?: string;
|
|
readonly OAUTH2_ACCESS_TOKEN?: string;
|
|
}
|
|
|
|
interface ImportMeta {
|
|
readonly env: ImportMetaEnv;
|
|
}
|