fix: use webroot nginx site for acme.sh certificate issuance

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-16 08:30:33 +08:00
parent 7089fa5777
commit 2653afa287
4 changed files with 300 additions and 275 deletions
+17
View File
@@ -0,0 +1,17 @@
server {
listen 80;
listen [::]:80;
server_name __DOMAIN__;
root /var/www/acme;
location /.well-known/acme-challenge/ {
default_type "text/plain";
try_files $uri =404;
}
location / {
return 200 'ok';
add_header Content-Type text/plain;
}
}