admin/home: link rev-proxy guide
Massimo Melina committed
Jul 8, 2023 at 10:48 UTC
b4131295bcf850d3ddc2406d19e4d59bfc695eb0
1 file changed
+2
admin/src/HomePage.ts
+2
@@ -20,6 +20,7 @@ interface Status {
20
http: ServerStatus
21
https: ServerStatus
22
frpDetected: boolean
23
+ proxyDetected?: boolean
24
update: boolean | string
25
version: string
26
}
@@ -76,6 +77,7 @@ export default function HomePage() {
77
}, "ignore this warning"),
78
SOLUTION_SEP, wikiLink('Proxy-warning', "Explanation")
79
),
80
+ (cfg?.proxies > 0 || status?.proxyDetected) && entry('', wikiLink('Reverse-proxy', "Read our guide on proxies")),
81
status.frpDetected && entry('warning', `FRP is detected. It should not be used with "type = tcp" with HFS. Possible solutions are`,
82
h('ol',{},
83
h('li',{}, `configure FRP with type=http (best solution)`),