nixos/sing-box: avoid port scanning

This commit is contained in:
Guanran Wang 2024-09-30 21:33:48 +08:00
parent 2c95d50761
commit d4eb22dbc5
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF
2 changed files with 16 additions and 1 deletions

View file

@ -225,10 +225,11 @@
};
experimental = {
clash_api = {
clash_api = rec {
external_controller = "127.0.0.1:9090";
external_ui = pkgs.metacubexd;
secret = "hunter2";
access_control_allow_origin = [ "http://${external_controller}" ];
};
};
};

View file

@ -22,6 +22,20 @@ _final: prev: {
'';
};
# https://www.v2ex.com/t/1076579
sing-box = prev.sing-box.overrideAttrs (rec {
version = "1.10.0-beta.11";
src = prev.fetchFromGitHub {
owner = "SagerNet";
repo = "sing-box";
rev = "v${version}";
hash = "sha256-hxOQdrNQB/3KbI1ULDLPfMzFB1JmZb49iPEOtGzWajY=";
};
vendorHash = "sha256-rsgrcVkIMUIobuGFBlDDQM05sljZXShsa1+10xxzmlA=";
});
qt6Packages = prev.qt6Packages.overrideScope (
_final': prev': {
# HACK: no more qt5