Skip to content

Commit 30bfc67

Browse files
psurabhHarika
authored andcommitted
Merge pull request opea-project#52 from cld2labs/cld2labs/PDFToPodcast
cld2labs/PDFToPodcast
2 parents 4a10a18 + 201f47f commit 30bfc67

137 files changed

Lines changed: 18427 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Backend Configuration
2+
CORS_ORIGINS=http://localhost:3000
3+
4+
# Service URLs (for local development)
5+
PDF_SERVICE_URL=http://pdf-service:8001
6+
LLM_SERVICE_URL=http://llm-service:8002
7+
TTS_SERVICE_URL=http://tts-service:8003
8+
BACKEND_API_URL=http://localhost:8000
9+
10+
# File Upload Configuration
11+
MAX_FILE_SIZE=10485760 # 10MB in bytes
12+
13+
# Environment
14+
NODE_ENV=development
15+
PYTHON_ENV=development
16+
17+
# Local URL Endpoint (only needed for non-public domains)
18+
# If using a local domain like api.example.com mapped to localhost, set to the domain without https://
19+
# Otherwise, set to: not-needed
20+
LOCAL_URL_ENDPOINT=not-needed
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# Environment variables
2+
.env
3+
.env.local
4+
.env.*.local
5+
6+
# Python
7+
__pycache__/
8+
*.py[cod]
9+
*$py.class
10+
*.so
11+
.Python
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
MANIFEST
28+
venv/
29+
env/
30+
ENV/
31+
.venv
32+
33+
# Node
34+
node_modules/
35+
npm-debug.log*
36+
yarn-debug.log*
37+
yarn-error.log*
38+
pnpm-debug.log*
39+
.pnpm-debug.log*
40+
dist/
41+
dist-ssr/
42+
*.local
43+
44+
# IDE
45+
.vscode/
46+
.idea/
47+
*.swp
48+
*.swo
49+
*~
50+
.DS_Store
51+
52+
# Docker
53+
*.log
54+
55+
# Uploads and outputs
56+
uploads/
57+
outputs/
58+
*.mp3
59+
*.wav
60+
microservices/tts-service/static/audio/
61+
62+
# Exception: Allow voice sample files
63+
!ui/public/voice-samples/*.mp3
64+
65+
# Database
66+
*.db
67+
*.sqlite
68+
*.sqlite3
69+
70+
# Testing
71+
.pytest_cache/
72+
.coverage
73+
htmlcov/
74+
.tox/
75+
76+
# Misc
77+
.cache/
78+
*.bak
79+
*.tmp
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM python:3.10-slim
2+
3+
# Set the working directory in the container
4+
WORKDIR /app
5+
6+
# Copy the requirements file first to leverage Docker layer caching
7+
COPY requirements.txt .
8+
9+
RUN pip install -r requirements.txt
10+
11+
# Copy the rest of the application files into the container
12+
COPY simple_backend.py .
13+
14+
RUN groupadd -r appuser && useradd -r -g appuser appuser
15+
RUN chown -R appuser:appuser /app
16+
USER appuser
17+
18+
# Expose the port the service runs on
19+
EXPOSE 8000
20+
21+
# Command to run the application
22+
CMD ["python", "-m", "uvicorn", "simple_backend:app", "--host", "0.0.0.0", "--port", "8000"]

0 commit comments

Comments
 (0)