HEX
Server: nginx/1.28.3
System: Linux ip-172-31-12-242 6.17.0-1007-aws #7~24.04.1-Ubuntu SMP Thu Jan 22 21:04:49 UTC 2026 x86_64
User: root (0)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/server/panel/BTPanel/static/js/setting-proxy.js
import{c as U,w as C,o as T,I as E,j as r,k as u,J as F,p as e,C as i,v as n,e as t,F as I,B,a1 as D,x as s,ad as L,am as R,an as h,U as N,aW as O,z as P,ab as S}from"./base-lib.js?v=1777008528";import{cO as J,b as M,a as W}from"./utils-lib.js?v=1777008528";import{H as _,k as m,f as j,I as a,t as z,J as H,K,L as b,M as q,b as A,N as G,d as Q}from"./useController11.js?v=1777008528";import"./__commonjsHelpers__.js?v=1777008528";import"./site.js?v=1777008528";import"./index3.js?v=1777008528";import"./index119.js?v=1777008528";import"./index116.js?v=1777008528";import"./useStore2.js?v=1777008528";const X={class:"p-[20px]"},re=U({__name:"setting-proxy",setup(Y){return C(()=>m.value,()=>{_(m.value)}),T(()=>{_(m.value)}),(Z,o)=>{const d=J,p=L,f=R,y=h,x=M,V=W,c=N,k=O,w=P,g=S,v=E("bt-loading");return r(),u("div",X,[F((r(),i(g,{ref_key:"proxyFormRef",ref:A,model:e(a),rules:e(G),"label-width":"110px",disabled:e(Q)},{default:n(()=>[t(p,{label:"代理目录",prop:"path"},{default:n(()=>[t(d,{modelValue:e(a).path,"onUpdate:modelValue":o[0]||(o[0]=l=>e(a).path=l),disabled:"",placeholder:"请输入代理目录",width:"42rem"},null,8,["modelValue"])]),_:1}),t(p,{label:"目标",prop:"targetType"},{default:n(()=>[t(y,{class:"!w-[16rem]",modelValue:e(a).targetType,"onUpdate:modelValue":o[1]||(o[1]=l=>e(a).targetType=l),placeholder:"请选择"},{default:n(()=>[(r(!0),u(I,null,B(e(z),l=>(r(),i(f,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(p,{label:" ",prop:"proxysite"},{default:n(()=>[t(d,{modelValue:e(a).proxysite,"onUpdate:modelValue":o[2]||(o[2]=l=>e(a).proxysite=l),placeholder:e(a).targetType!=="http"?"请选择sock文件":"请输入目标URL",width:"42rem",onInput:e(H)},D({_:2},[e(a).targetType!=="http"?{name:"append",fn:n(()=>[t(V,{onClick:e(K)},{default:n(()=>[t(x,{icon:"el-folder-opened",class:"cursor-pointer"})]),_:1},8,["onClick"])]),key:"0"}:void 0]),1032,["modelValue","placeholder","onInput"])]),_:1}),t(p,{label:"发送域名(host)",prop:"todomain"},{default:n(()=>[t(d,{modelValue:e(a).todomain,"onUpdate:modelValue":o[3]||(o[3]=l=>e(a).todomain=l),placeholder:"请输入发送域名",width:"42rem"},null,8,["modelValue"])]),_:1}),t(p,{label:"备注"},{default:n(()=>[t(d,{modelValue:e(a).ps,"onUpdate:modelValue":o[4]||(o[4]=l=>e(a).ps=l),placeholder:"请输入备注,可为空",width:"42rem"},null,8,["modelValue"])]),_:1}),t(p,{label:"websocket支持"},{default:n(()=>[t(k,{disabled:!e(b),effect:"dark",content:"全局websocket已开启,不允许单独关闭",placement:"top"},{default:n(()=>[t(c,{disabled:e(b),modelValue:e(a).websocket,"onUpdate:modelValue":o[5]||(o[5]=l=>e(a).websocket=l)},null,8,["disabled","modelValue"])]),_:1},8,["disabled"])]),_:1}),t(p,{label:"连接超时时间",prop:"proxy_connect_timeout"},{default:n(()=>[t(d,{modelValue:e(a).proxy_connect_timeout,"onUpdate:modelValue":o[6]||(o[6]=l=>e(a).proxy_connect_timeout=l),textType:"秒",width:"41rem"},{append:n(()=>[...o[9]||(o[9]=[s(" 秒 ",-1)])]),_:1},8,["modelValue"])]),_:1}),t(p,{label:"后端请求超时时间",prop:"proxy_send_timeout"},{default:n(()=>[t(d,{modelValue:e(a).proxy_send_timeout,"onUpdate:modelValue":o[7]||(o[7]=l=>e(a).proxy_send_timeout=l),textType:"秒",width:"41rem"},{append:n(()=>[...o[10]||(o[10]=[s(" 秒 ",-1)])]),_:1},8,["modelValue"])]),_:1}),t(p,{label:"代理响应超时时间",prop:"proxy_read_timeout"},{default:n(()=>[t(d,{modelValue:e(a).proxy_read_timeout,"onUpdate:modelValue":o[8]||(o[8]=l=>e(a).proxy_read_timeout=l),textType:"秒",width:"41rem"},{append:n(()=>[...o[11]||(o[11]=[s(" 秒 ",-1)])]),_:1},8,["modelValue"])]),_:1}),t(p,{label:" "},{default:n(()=>[t(w,{type:"primary",onClick:e(q)},{default:n(()=>[...o[12]||(o[12]=[s("保存",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model","rules","disabled"])),[[v,e(j)]])])}}});export{re as default};