This commit is contained in:
dami
2025-11-29 14:57:11 +08:00
parent f4c72266ea
commit 7c444b3c53
4 changed files with 4 additions and 8 deletions
+1 -1
View File
@@ -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 服务器
-5
View File
@@ -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 -2
View File
@@ -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
+2
View File
@@ -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
# 查看完整日志