veza/apps/web/src/vite-env.d.ts
senke f85e0f14ec fix(security): add JWT auth to HLS endpoints (audit 1.3, P0)
- Add hls_auth_middleware in stream server (Bearer + ?token=)
- Apply auth to /hls/:track_id/* routes
- Update frontend hlsService to use stream server URL + pass JWT via xhrSetup
- Add getHLSXhrSetup() and getHLSURLWithToken() for hls.js integration
- Add VITE_HLS_BASE_URL config (derived from VITE_STREAM_URL when unset)
- Add unit tests for token extraction and HLS helpers
- Mark audit item 1.3 as done
2026-02-15 12:48:58 +01:00

28 lines
945 B
TypeScript

/// <reference types="vite/client" />
interface ImportMetaEnv {
readonly VITE_API_URL: string;
readonly VITE_WS_URL: string;
readonly VITE_STREAM_URL: string;
readonly VITE_HLS_BASE_URL?: string;
readonly VITE_UPLOAD_URL: string;
readonly VITE_APP_NAME: string;
readonly VITE_DEBUG: string;
readonly VITE_USE_MSW: string;
readonly VITE_STORYBOOK?: string;
readonly VITE_FCM_VAPID_KEY: string;
/** Feature flags (optional) */
readonly VITE_FEATURE_TWO_FACTOR_AUTH?: string;
readonly VITE_FEATURE_PLAYLIST_COLLABORATION?: string;
readonly VITE_FEATURE_PLAYLIST_SEARCH?: string;
readonly VITE_FEATURE_PLAYLIST_SHARE?: string;
readonly VITE_FEATURE_PLAYLIST_RECOMMENDATIONS?: string;
readonly VITE_FEATURE_HLS_STREAMING?: string;
readonly VITE_FEATURE_ROLE_MANAGEMENT?: string;
readonly VITE_FEATURE_NOTIFICATIONS?: string;
// more env variables...
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}