Monteeq CI commited on
Commit
652ed56
·
1 Parent(s): 5d306e3

🚀 Deploy Monteeq Video Service to Hugging Face Spaces

Browse files
Files changed (2) hide show
  1. README.md +11 -25
  2. 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
- This service requires connection to a Redis server and an AWS S3 bucket (or compatible storage). In your Hugging Face Space settings, add the following **Variables and Secrets**:
18
 
19
- | Secret Name | Description |
20
  |---|---|
21
- | `REDIS_URL` | Redis connection URL (e.g. `redis://default:password@host:port`) |
22
- | `AWS_ACCESS_KEY_ID` | Your S3 access key ID |
23
- | `AWS_SECRET_ACCESS_KEY` | Your S3 secret access key |
24
- | `AWS_STORAGE_BUCKET_NAME` | The target S3 bucket (e.g. `monteeq-2`) |
25
- | `AWS_S3_REGION_NAME` | The S3 bucket region (e.g. `eu-central-1`) |
26
- | `S3_ENDPOINT` | (Optional) Custom endpoint URL if not using AWS S3 (e.g., Backblaze B2, Cloudflare R2) |
27
- | `AWS_S3_USE_ACCELERATE` | (Optional) Set to `true` to enable Transfer Acceleration |
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), 3).unwrap();
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();