File size: 1,279 Bytes
0db865c
 
 
 
 
 
01c9df4
0db865c
 
 
 
 
 
aff4477
0db865c
 
 
 
 
 
 
 
 
 
 
 
01c9df4
bf1fad7
0db865c
 
440c12c
0db865c
440c12c
0db865c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
services:
  # Backend API Service
  - type: web
    name: verifile-x-api
    runtime: python
    buildCommand: "pip install --upgrade pip && pip install -r backend/requirements.txt"
    startCommand: "uvicorn backend.main:app --host 0.0.0.0 --port $PORT"
    envVars:
      - key: PYTHON_VERSION
        value: 3.11.14
      - key: DEBUG
        value: false
      - key: CORS_ORIGINS
        value: "https://abinaze.github.io,https://abinazebinoy-verifile-x-api.hf.space"
      - key: MAX_FILE_SIZE_MB
        value: 50
      - key: MAX_ANALYSIS_SIZE_MB
        value: 10
      - key: RATE_LIMIT_PER_MINUTE
        value: 10
      - key: CACHE_TTL_MINUTES
        value: 60
      - key: MAX_CACHE_SIZE
        value: 500
      - key: LOG_LEVEL
        value: INFO
    healthCheckPath: /health


  # Frontend Static Site
  - type: web
    name: verifile-x
    runtime: static
    buildCommand: "echo 'No build needed - static HTML'"
    staticPublishPath: ./frontend
    headers:
      - path: /*
        name: X-Frame-Options
        value: DENY
      - path: /*
        name: X-Content-Type-Options
        value: nosniff
      - path: /*
        name: Referrer-Policy
        value: no-referrer
      - path: /*
        name: Cache-Control
        value: public, max-age=3600