File size: 603 Bytes
f3bcb28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
:7860 {
    # Logs
    log {
        output stdout
        format console
    }

    # API Backend - strip /api prefix
    handle_path /api/* {
        reverse_proxy localhost:8000
    }

    # Direct backend routes (health, docs, openapi)
    handle /health/* {
        reverse_proxy localhost:8000
    }

    handle /v1/* {
        reverse_proxy localhost:8000
    }

    handle /docs {
        reverse_proxy localhost:8000
    }

    handle /openapi.json {
        reverse_proxy localhost:8000
    }

    # Frontend Next.js (everything else)
    handle {
        reverse_proxy localhost:3000
    }
}