From 9a711b257486bba15a0aa02582e399bb91f01227 Mon Sep 17 00:00:00 2001 From: Haitao Pan Date: Tue, 27 Jan 2026 22:40:29 +0800 Subject: [PATCH] chore: Update Xray certificate and key file paths to Caddy ACME dynamic locations. --- config/xray.config.template.json | 6 +++--- internal/xrayconfig/template_server.json | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/xray.config.template.json b/config/xray.config.template.json index 980c34a..89f4445 100644 --- a/config/xray.config.template.json +++ b/config/xray.config.template.json @@ -43,8 +43,8 @@ "certificates": [ { "ocspStapling": 3600, - "certificateFile": "/etc/ssl/onwalk.net.pem", - "keyFile": "/etc/ssl/onwalk.net.key" + "certificateFile": "/var/lib/caddy/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory/{{.Domain}}/{{.Domain}}.crt", + "keyFile": "/var/lib/caddy/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory/{{.Domain}}/{{.Domain}}.key" } ] } @@ -76,4 +76,4 @@ } } } -} +} \ No newline at end of file diff --git a/internal/xrayconfig/template_server.json b/internal/xrayconfig/template_server.json index 980c34a..89f4445 100644 --- a/internal/xrayconfig/template_server.json +++ b/internal/xrayconfig/template_server.json @@ -43,8 +43,8 @@ "certificates": [ { "ocspStapling": 3600, - "certificateFile": "/etc/ssl/onwalk.net.pem", - "keyFile": "/etc/ssl/onwalk.net.key" + "certificateFile": "/var/lib/caddy/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory/{{.Domain}}/{{.Domain}}.crt", + "keyFile": "/var/lib/caddy/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory/{{.Domain}}/{{.Domain}}.key" } ] } @@ -76,4 +76,4 @@ } } } -} +} \ No newline at end of file