22# Default variables for the sing-box role with Hysteria2
33
44# --- Sing-box Download Variables ---
5- singbox_version : " 1.12.21 "
5+ singbox_version : " 1.13.3 "
66singbox_auto_update : true
77singbox_repo : " SagerNet/sing-box"
88singbox_architecture : " amd64" # Options: amd64, arm64, armv7
@@ -12,16 +12,9 @@ singbox_config_dir: "/etc/sing-box"
1212singbox_user : " nobody"
1313
1414# --- DNS Settings ---
15- singbox_dns_servers :
16- - tag : " google"
17- address : " tls://8.8.8.8"
18- strategy : " prefer_ipv4"
19- - tag : " cloudflare"
20- address : " tls://1.1.1.1"
21- strategy : " prefer_ipv4"
22- - tag : " local"
23- address : " local"
24- detour : " direct"
15+ # sing-box 1.12+ format: type + server fields (address: prefix is legacy)
16+ singbox_dns_strategy : " prefer_ipv4" # global: prefer_ipv4, prefer_ipv6, ipv4_only, ipv6_only
17+ singbox_dns_final : " local" # default server tag when no rule matches
2518
2619# --- Log Settings ---
2720singbox_log_disabled : false
@@ -93,4 +86,15 @@ singbox_geosite_enabled: true
9386singbox_geosite_url : " https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db"
9487singbox_geosite_path : " /etc/sing-box/geosite.db"
9588
89+ # --- Raven-subscribe integration ---
90+ # When enabled, Raven-subscribe will sync Hysteria2 users from sing-box config.
91+ # This variable is consumed by the xray role's raven-subscribe/config.json.j2 template.
92+ # Set raven_subscribe_singbox_config to point to sing-box config file.
93+ # Set raven_subscribe_singbox_enabled: true to activate sync.
94+ #
95+ # These variables are only effective when both roles (xray + sing-box) are deployed together.
96+ # If deploying sing-box standalone, configure Raven manually.
97+ raven_subscribe_singbox_config : " {{ singbox_config_dir }}/config.json"
98+ raven_subscribe_singbox_enabled : true
99+
96100# --- System Packages ---
0 commit comments