@@ -23,6 +23,13 @@ for bidirectional streaming methods.
2323 "secret" : " " ,
2424 "access_control_allow_origin" : [],
2525 "access_control_allow_private_network" : false ,
26+ "dashboard" : {
27+ "enabled" : true ,
28+ "path" : " " ,
29+ "download_url" : " " ,
30+ "http_client" : " " , // or { }
31+ "update_interval" : " "
32+ },
2633 "tls" : {}
2734}
2835```
@@ -49,6 +56,59 @@ CORS allowed origins, `*` will be used if empty.
4956
5057Allow access from private network.
5158
59+ #### dashboard
60+
61+ Web dashboard downloaded and served over the API listener at ` /dashboard/ ` ; other browser
62+ requests are redirected to it.
63+
64+ !!! info ""
65+
66+ The object can be replaced with a boolean value (equivalent to `{ "enabled": <bool> }`),
67+ or with a string path (equivalent to `{ "enabled": true, "path": "<string>" }`).
68+
69+ ##### enabled
70+
71+ Enable the dashboard.
72+
73+ ##### path
74+
75+ Directory the dashboard files are stored in.
76+
77+ ` dashboard ` in the working directory will be used by default.
78+
79+ If the directory is empty, the dashboard is downloaded and an ` .etag ` file is stored inside
80+ it to skip unchanged updates. A non-empty directory without an ` .etag ` file is served as-is
81+ and never updated automatically.
82+
83+ ##### download_url
84+
85+ Download URL of the dashboard archive (zip).
86+
87+ ` https://github.com/SagerNet/sing-box-dashboard/archive/refs/heads/gh-pages.zip ` will be used by default.
88+
89+ ##### http_client
90+
91+ HTTP client used to download the dashboard, with the same behavior as remote rule-sets.
92+
93+ See [ HTTP Client Fields] ( /configuration/shared/http-client/ ) for details.
94+
95+ When empty, the default HTTP client is used: the one named by
96+ [ ` default_http_client ` ] ( /configuration/route/#default_http_client ) , or the first top-level
97+ ` http_clients ` entry when ` default_http_client ` is empty.
98+
99+ !!! failure "Implicit default deprecated in sing-box 1.14.0"
100+
101+ When neither `http_clients` nor `default_http_client` is configured, an implicit HTTP
102+ client connecting through the default outbound is used. This implicit default is
103+ deprecated in sing-box 1.14.0 and will be removed in sing-box 1.16.0; define
104+ `http_clients` instead.
105+
106+ ##### update_interval
107+
108+ Update interval of the dashboard.
109+
110+ ` 1d ` will be used by default.
111+
52112#### tls
53113
54114TLS configuration, see [ TLS] ( /configuration/shared/tls/#inbound ) .
0 commit comments