Spaces:
Sleeping
Sleeping
Monteeq CI commited on
Commit ·
652ed56
1
Parent(s): 5d306e3
🚀 Deploy Monteeq Video Service to Hugging Face Spaces
Browse files- README.md +11 -25
- src/main.rs +1 -1
README.md
CHANGED
|
@@ -12,32 +12,18 @@ pinned: false
|
|
| 12 |
|
| 13 |
High-performance, asynchronous Rust service for processing and transcoding video to HLS.
|
| 14 |
|
|
|
|
|
|
|
| 15 |
## Configuration
|
| 16 |
|
| 17 |
-
|
| 18 |
|
| 19 |
-
| Secret Name |
|
| 20 |
|---|---|
|
| 21 |
-
| `REDIS_URL` | Redis connection URL
|
| 22 |
-
| `
|
| 23 |
-
| `
|
| 24 |
-
| `
|
| 25 |
-
| `
|
| 26 |
-
| `
|
| 27 |
-
| `
|
| 28 |
-
|
| 29 |
-
## Deployment
|
| 30 |
-
|
| 31 |
-
To push changes to your Hugging Face Space:
|
| 32 |
-
|
| 33 |
-
1. Initialize git and configure the Hugging Face Space remote:
|
| 34 |
-
```bash
|
| 35 |
-
git init
|
| 36 |
-
git remote add hf git@hf.co:spaces/<your-username>/<your-space-name>
|
| 37 |
-
```
|
| 38 |
-
2. Commit and push:
|
| 39 |
-
```bash
|
| 40 |
-
git add .
|
| 41 |
-
git commit -m "Deploy to Hugging Face Spaces"
|
| 42 |
-
git push hf main --force
|
| 43 |
-
```
|
|
|
|
| 12 |
|
| 13 |
High-performance, asynchronous Rust service for processing and transcoding video to HLS.
|
| 14 |
|
| 15 |
+
- **Health Check**: [/health](https://monteeqorg-readme.hf.space/health)
|
| 16 |
+
|
| 17 |
## Configuration
|
| 18 |
|
| 19 |
+
In your Hugging Face Space settings, add the following **Secrets**:
|
| 20 |
|
| 21 |
+
| Secret Name | Value |
|
| 22 |
|---|---|
|
| 23 |
+
| `REDIS_URL` | Redis Cloud connection URL |
|
| 24 |
+
| `S3_ENDPOINT` | `https://s3.hf.co/MonteeqOrg` |
|
| 25 |
+
| `S3_BUCKET_NAME` | `backend-storage` |
|
| 26 |
+
| `AWS_ACCESS_KEY_ID` | HF S3 Access Key |
|
| 27 |
+
| `AWS_SECRET_ACCESS_KEY` | HF S3 Secret Key |
|
| 28 |
+
| `AWS_S3_REGION_NAME` | `us-east-1` |
|
| 29 |
+
| `AWS_CLOUDFRONT_DOMAIN` | *(leave empty)* |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
src/main.rs
CHANGED
|
@@ -60,7 +60,7 @@ async fn main() {
|
|
| 60 |
|
| 61 |
let policy = ReconnectPolicy::default();
|
| 62 |
// Use a connection pool for higher concurrency
|
| 63 |
-
let pool = RedisPool::new(config, Some(perf), None, Some(policy),
|
| 64 |
|
| 65 |
println!("[DEBUG] Initiating Redis connection to {}...", redis_url);
|
| 66 |
pool.connect();
|
|
|
|
| 60 |
|
| 61 |
let policy = ReconnectPolicy::default();
|
| 62 |
// Use a connection pool for higher concurrency
|
| 63 |
+
let pool = RedisPool::new(config, Some(perf), None, Some(policy), 10).unwrap();
|
| 64 |
|
| 65 |
println!("[DEBUG] Initiating Redis connection to {}...", redis_url);
|
| 66 |
pool.connect();
|