chore: remove package-lock.json and update URLs in setup documentation
- Deleted `package-lock.json` to streamline dependency management. - Updated URLs in `OPENREADER_SETUP.md`, `openreader-webui.sh`, and `README.md` to reflect local development settings instead of production URLs.
This commit is contained in:
parent
5f87d66cc4
commit
161a294a24
5 changed files with 21 additions and 9324 deletions
9307
package-lock.json
generated
9307
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -53,5 +53,6 @@
|
|||
"postcss": "^8.5.6",
|
||||
"tailwindcss": "^3.4.19",
|
||||
"typescript": "^5.9.3"
|
||||
}
|
||||
},
|
||||
"packageManager": "pnpm@10.13.1+sha512.37ebf1a5c7a30d5fabe0c5df44ee8da4c965ca0c5af3dbab28c3a1681b70a256218d05c81c9c0dcf767ef6b8551eb5b960042b9ed4300c59242336377e01cfad"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
Document reader with high-quality text-to-speech using Groq's Orpheus TTS.
|
||||
|
||||
**URL:** https://reader.sunnymodi.com
|
||||
**URL:** http://localhost:3003
|
||||
|
||||
## Architecture
|
||||
|
||||
|
|
@ -15,7 +15,7 @@ Document reader with high-quality text-to-speech using Groq's Orpheus TTS.
|
|||
▼
|
||||
┌─────────────────────┐
|
||||
│ nginx (SSL :443) │
|
||||
│ reader.sunnymodi.com
|
||||
│ your-domain.com
|
||||
└─────────────────────┘
|
||||
```
|
||||
|
||||
|
|
@ -24,16 +24,16 @@ Document reader with high-quality text-to-speech using Groq's Orpheus TTS.
|
|||
| Component | Location | Port | Purpose |
|
||||
|-----------|----------|------|---------|
|
||||
| OpenReader WebUI | Docker container | 3003 | PDF/EPUB reader UI |
|
||||
| Groq TTS Proxy | `/home/ec2-user/groq-tts-proxy.py` | 8880 | Adds `/voices` endpoint, proxies to Groq |
|
||||
| Groq TTS Proxy | `scripts/groq-tts-proxy.py` | 8880 | Adds `/voices` endpoint, proxies to Groq |
|
||||
| nginx | `/etc/nginx/conf.d/openreader.conf` | 443 | SSL termination, reverse proxy |
|
||||
|
||||
## Files
|
||||
|
||||
```
|
||||
/home/ec2-user/
|
||||
scripts/
|
||||
├── openreader-webui.sh # Startup script (run this to start everything)
|
||||
├── groq-tts-proxy.py # Python proxy server for Groq TTS
|
||||
├── ENTERPRISE_AI_MAIN/.env # Contains GROQ_API_KEY
|
||||
├── .env # Contains GROQ_API_KEY
|
||||
└── OPENREADER_SETUP.md # This file
|
||||
```
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ Document reader with high-quality text-to-speech using Groq's Orpheus TTS.
|
|||
|
||||
### Start Services
|
||||
```bash
|
||||
/home/ec2-user/openreader-webui.sh
|
||||
./scripts/openreader-webui.sh
|
||||
```
|
||||
|
||||
### Check Status
|
||||
|
|
@ -71,7 +71,7 @@ pkill -f groq-tts-proxy.py
|
|||
## Configuration
|
||||
|
||||
### Environment Variable
|
||||
The `GROQ_API_KEY` is stored in `/home/ec2-user/ENTERPRISE_AI_MAIN/.env`:
|
||||
Create a `.env` file in the `scripts/` directory:
|
||||
```
|
||||
GROQ_API_KEY=gsk_xxxxx
|
||||
```
|
||||
|
|
@ -91,7 +91,7 @@ File: `/etc/nginx/conf.d/openreader.conf`
|
|||
|
||||
```nginx
|
||||
server {
|
||||
server_name reader.sunnymodi.com;
|
||||
server_name your-domain.com;
|
||||
|
||||
location / {
|
||||
proxy_pass http://localhost:3003;
|
||||
|
|
@ -105,8 +105,8 @@ server {
|
|||
}
|
||||
|
||||
listen 443 ssl; # managed by Certbot
|
||||
ssl_certificate /etc/letsencrypt/live/reader.sunnymodi.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/reader.sunnymodi.com/privkey.pem;
|
||||
ssl_certificate /etc/letsencrypt/live/your-domain.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/your-domain.com/privkey.pem;
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf;
|
||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
||||
}
|
||||
|
|
@ -157,7 +157,7 @@ Documents are stored in Docker volume `openreader_docstore` mounted at `/app/doc
|
|||
curl http://localhost:8880/v1/audio/voices
|
||||
|
||||
# If not running, restart
|
||||
/home/ec2-user/openreader-webui.sh
|
||||
./scripts/openreader-webui.sh
|
||||
```
|
||||
|
||||
### TTS not working / Server not responding
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ Scripts for running OpenReader WebUI with Groq Orpheus TTS.
|
|||
|
||||
## URL
|
||||
|
||||
https://reader.sunnymodi.com
|
||||
http://localhost:3003
|
||||
|
||||
## Architecture
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,15 @@
|
|||
#!/bin/bash
|
||||
# OpenReader WebUI - TTS Document Reader
|
||||
# URL: https://reader.sunnymodi.com
|
||||
# URL: http://localhost:3003
|
||||
# Uses Groq Orpheus TTS via local proxy
|
||||
|
||||
set -e
|
||||
|
||||
# Get the directory where this script is located
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
# Load GROQ_API_KEY
|
||||
source /home/ec2-user/OpenReader-WebUI/scripts/.env
|
||||
source "$SCRIPT_DIR/.env"
|
||||
export GROQ_API_KEY
|
||||
|
||||
# Stop existing services
|
||||
|
|
@ -16,7 +19,7 @@ docker rm openreader-webui 2>/dev/null || true
|
|||
sleep 1
|
||||
|
||||
# Start Groq TTS proxy (adds /voices endpoint for OpenReader)
|
||||
nohup python3 /home/ec2-user/OpenReader-WebUI/scripts/groq-tts-proxy.py > /tmp/groq-proxy.log 2>&1 &
|
||||
nohup python3 "$SCRIPT_DIR/groq-tts-proxy.py" > /tmp/groq-proxy.log 2>&1 &
|
||||
sleep 2
|
||||
|
||||
# Verify proxy is running
|
||||
|
|
@ -36,6 +39,6 @@ docker run --name openreader-webui \
|
|||
-d \
|
||||
ghcr.io/richardr1126/openreader-webui:latest
|
||||
|
||||
echo "OpenReader WebUI started at https://reader.sunnymodi.com"
|
||||
echo "OpenReader WebUI started at http://localhost:3003"
|
||||
echo "Groq TTS proxy running on port 8880"
|
||||
echo "Available voices: troy, austin, daniel, autumn, diana, hannah"
|
||||
|
|
|
|||
Loading…
Reference in a new issue