mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
update
This commit is contained in:
@@ -13,7 +13,7 @@ path = "/dns-query"
|
||||
max_concurrent_requests = 512
|
||||
|
||||
# 日志文件
|
||||
log_file = "{$SERVER_PATH}/doh-proxy/doh-proxy.log"
|
||||
log_file = "{$SERVER_PATH}/doh/doh-proxy.log"
|
||||
|
||||
[upstream]
|
||||
# 上游 DNS 服务器
|
||||
|
||||
@@ -132,11 +132,6 @@ def initDreplace():
|
||||
file_tpl = getInitdConfTpl()
|
||||
service_path = mw.getServerDir()
|
||||
|
||||
git_dir = mw.getServerDir() + '/git'
|
||||
if not os.path.exists(git_dir):
|
||||
mw.execShell('mkdir -p ' + git_dir)
|
||||
mw.execShell('chown -R www:www ' + git_dir)
|
||||
|
||||
|
||||
initD_path = getServerDir() + '/init.d'
|
||||
if not os.path.exists(initD_path):
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[Unit]
|
||||
Description=DOH (Git with a cup of tea)
|
||||
Description=DOH(DNS over HTTPS)
|
||||
After=syslog.target
|
||||
After=network.target
|
||||
|
||||
@@ -11,7 +11,6 @@ Group=www
|
||||
WorkingDirectory={$SERVER_PATH}/doh
|
||||
ExecStart={$SERVER_PATH}/doh/doh web
|
||||
Restart=always
|
||||
Environment=USER=www HOME=/home/www GITEA_WORK_DIR={$SERVER_PATH}/doh
|
||||
RemainAfterExit=yes
|
||||
#AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||
#CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||||
|
||||
@@ -14,6 +14,8 @@ fi
|
||||
|
||||
# cd /www/server/mdserver-web/plugins/doh && bash install.sh install 0.9.15
|
||||
|
||||
# /www/server/doh/doh-proxy --config /etc/doh-proxy/config.toml --check
|
||||
|
||||
# 详细状态信息
|
||||
# sudo systemctl status doh -l
|
||||
# 查看完整日志
|
||||
|
||||
Reference in New Issue
Block a user