File size: 2,101 Bytes
4795024
66a2fe2
5cd7ce4
 
0568556
 
 
 
66a2fe2
 
15c8440
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52ba61b
 
0568556
 
 
 
52ba61b
 
 
0568556
 
 
 
52ba61b
 
 
0568556
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52ba61b
 
66a2fe2
 
 
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
:7860

# OpenClaw UI mounted at /openclaw (preserve prefix).
handle /openclaw* {
    reverse_proxy 127.0.0.1:18789 {
        header_up Authorization "Bearer {$OPENCLAW_GATEWAY_TOKEN}"
        header_up X-OpenClaw-Token "{$OPENCLAW_GATEWAY_TOKEN}"
    }
}

# NanoClaw UI mounted at /nanoclaw (preserve prefix).
handle /nanoclaw* {
    reverse_proxy 127.0.0.1:{$NANOCLAW_PORT}
}

handle /nanobot* {
    reverse_proxy 127.0.0.1:{$NANOBOT_PORT}
}

handle /picoclaw* {
    reverse_proxy 127.0.0.1:{$PICOCLAW_PORT}
}

handle /zeroclaw* {
    reverse_proxy 127.0.0.1:{$ZEROCLAW_PORT}
}

handle /nullclaw* {
    reverse_proxy 127.0.0.1:{$NULLCLAW_PORT}
}

# OpenClaw UI uses absolute runtime paths; proxy them too.
handle /ws* {
    reverse_proxy 127.0.0.1:18789 {
        header_up Authorization "Bearer {$OPENCLAW_GATEWAY_TOKEN}"
        header_up X-OpenClaw-Token "{$OPENCLAW_GATEWAY_TOKEN}"
    }
}

handle /__openclaw__/* {
    reverse_proxy 127.0.0.1:18789 {
        header_up Authorization "Bearer {$OPENCLAW_GATEWAY_TOKEN}"
        header_up X-OpenClaw-Token "{$OPENCLAW_GATEWAY_TOKEN}"
    }
}

handle /ask {
    reverse_proxy 127.0.0.1:18789 {
        header_up Authorization "Bearer {$OPENCLAW_GATEWAY_TOKEN}"
        header_up X-OpenClaw-Token "{$OPENCLAW_GATEWAY_TOKEN}"
    }
}

handle /gateway* {
    reverse_proxy 127.0.0.1:18789 {
        header_up Authorization "Bearer {$OPENCLAW_GATEWAY_TOKEN}"
        header_up X-OpenClaw-Token "{$OPENCLAW_GATEWAY_TOKEN}"
    }
}

handle /events* {
    reverse_proxy 127.0.0.1:18789 {
        header_up Authorization "Bearer {$OPENCLAW_GATEWAY_TOKEN}"
        header_up X-OpenClaw-Token "{$OPENCLAW_GATEWAY_TOKEN}"
    }
}

handle /socket* {
    reverse_proxy 127.0.0.1:18789 {
        header_up Authorization "Bearer {$OPENCLAW_GATEWAY_TOKEN}"
        header_up X-OpenClaw-Token "{$OPENCLAW_GATEWAY_TOKEN}"
    }
}

handle /health {
    reverse_proxy 127.0.0.1:18789 {
        header_up Authorization "Bearer {$OPENCLAW_GATEWAY_TOKEN}"
        header_up X-OpenClaw-Token "{$OPENCLAW_GATEWAY_TOKEN}"
    }
}

handle {
    reverse_proxy 127.0.0.1:8501
}