diff --git a/README.md b/README.md index a1337be..a825644 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ services.proxy-suite = { tgWsProxy = { enable = true; host = "127.0.0.1"; - port = 1076; + port = 1443; # Inline secret is convenient for testing, but ends up in the Nix store. # For real use, prefer secretFile with a secret file. secret = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; diff --git a/docs/options.md b/docs/options.md index 55a63ef..1468a92 100644 --- a/docs/options.md +++ b/docs/options.md @@ -260,7 +260,7 @@ services.proxy-suite = { dcIps = { }; enable = false; host = "127.0.0.1"; - port = 1076; + port = 1443; secret = null; secretFile = null; }; @@ -3693,7 +3693,7 @@ WebSocket proxy\. *Default:* ```nix -1076 +1443 ``` diff --git a/modules/proxy-suite/options/other.nix b/modules/proxy-suite/options/other.nix index 553ff66..fb17774 100644 --- a/modules/proxy-suite/options/other.nix +++ b/modules/proxy-suite/options/other.nix @@ -20,29 +20,25 @@ in example = "proxy-suite"; }; - global.enable = - (mkEnableOption "passwordless proxy-ctl control over global proxy-suite units") - // { - default = true; - description = '' - Whether members of userControl.group may manage global - proxy-suite units without password prompts via commands like - `proxy-ctl tun on|off`, `proxy-ctl tproxy on|off`, - `proxy-ctl restart`, or `proxy-ctl subscription update`. - ''; - }; + global.enable = (mkEnableOption "passwordless proxy-ctl control over global proxy-suite units") // { + default = true; + description = '' + Whether members of userControl.group may manage global + proxy-suite units without password prompts via commands like + `proxy-ctl tun on|off`, `proxy-ctl tproxy on|off`, + `proxy-ctl restart`, or `proxy-ctl subscription update`. + ''; + }; - perApp.enable = - (mkEnableOption "passwordless proxy-ctl control over per-app routing helpers") - // { - default = true; - description = '' - Whether members of userControl.group may start and stop the - app-scoped backend units used by `proxy-ctl wrap ...` for - route = "tun", route = "tproxy", or route = "zapret" profiles - without password prompts. - ''; - }; + perApp.enable = (mkEnableOption "passwordless proxy-ctl control over per-app routing helpers") // { + default = true; + description = '' + Whether members of userControl.group may start and stop the + app-scoped backend units used by `proxy-ctl wrap ...` for + route = "tun", route = "tproxy", or route = "zapret" profiles + without password prompts. + ''; + }; }; tray = { @@ -75,7 +71,7 @@ in port = mkOption { type = types.port; - default = 1076; + default = 1443; description = '' TCP listen port for tg-ws-proxy. Telegram clients connect to this endpoint when using the local MTProto