mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-19 21:18:18 +02:00
feat: Initialize the core Express server with security, session management, and service integrations, and add a Docker volume for audio file persistence.
This commit is contained in:
1 parent
04373d2881
commit
94429e86df
3 files changed
+24
-21
No files matched your search
@@ -60,6 +60,10 @@ const authLimiter = rateLimit({
|
||||
app.use('/api/', globalLimiter);
|
||||
app.use('/api/auth/login', authLimiter);
|
||||
|
||||
// Serve locally stored audio files
|
||||
const AUDIO_UPLOAD_DIR = process.env.AUDIO_UPLOAD_DIR || '/app/uploads/audio';
|
||||
app.use('/uploads/audio', express.static(AUDIO_UPLOAD_DIR));
|
||||
|
||||
declare module 'http' {
|
||||
interface IncomingMessage {
|
||||
rawBody: unknown
|
||||
|
||||
Reference in new issue
Block a user