diff --git a/plugins/doh/init.d/doh.service.tpl b/plugins/doh/init.d/doh.service.tpl
index fc1b8cb64..87a5b3315 100644
--- a/plugins/doh/init.d/doh.service.tpl
+++ b/plugins/doh/init.d/doh.service.tpl
@@ -9,7 +9,7 @@ Type=simple
User=www
Group=www
WorkingDirectory={$SERVER_PATH}/doh
-ExecStart={$SERVER_PATH}/doh/doh web
+ExecStart={$SERVER_PATH}/doh/doh-proxy --config {$SERVER_PATH}/config.toml
Restart=always
RemainAfterExit=yes
#AmbientCapabilities=CAP_NET_BIND_SERVICE
diff --git a/plugins/doh/js/doh.js b/plugins/doh/js/doh.js
index f462a3981..f72d9ebfd 100755
--- a/plugins/doh/js/doh.js
+++ b/plugins/doh/js/doh.js
@@ -679,81 +679,10 @@ function createScriptFile(type, user, name, file) {
});
}
-function projectScriptSelf(user, name){
- layer.open({
- type: 1,
- title: '项目('+user+'/'+name+')自定义脚本',
- area: '500px',
- content:"
",
- success:function(){
- projectScriptSelfRender(user, name);
-
- $('#create_script').click(function(){
- createScriptFile(0, user, name);
- });
-
- $('#script_hook_enable').click(function(){
- var enable = $('#open_script').prop('checked');
- var enable_option = '0';
- if (!enable){
- enable_option = '1';
- }
- gogsPost('project_script_self_enable', {'user':user,'name':name,'enable':enable_option}, function(data){
- var data = $.parseJSON(data.data);
- showMsg(data.msg ,function(){
- projectScriptSelfRender(user, name);
- },{icon:data.status?1:2,shade: [0.3, '#000']},2000);
- });
-
- });
- }
- });
-}
-
-function getRsaPublic(){
- gogsPost('get_rsa_public', {}, function(data){
- var rdata = $.parseJSON(data.data);
- var con = ''
- layer.open({
- type: 1,
- area: "600px",
- title: '本机公钥',
- closeBtn: 2,
- shift: 5,
- shadeClose: false,
- content:con
- });
- });
-}
-
function dohRead(){
var readme = '';
- readme += '- 默认使用MySQL,第一个启动加载各种配置,并修改成正确的数据库配置
';
- readme += '- 邮件端口使用456,gitea仅支持使用STARTTLS的SMTP协议
';
- readme += '- 项目【加载脚本】后,会自动同步到wwwroot目录下
';
- readme += '- 点击查看本机公钥>
';
+ readme += '- DNS
';
readme += '
';
$('.soft-man-con').html(readme);