添加 ssl 插件

This commit is contained in:
apple
2025-10-11 17:50:48 +08:00
parent 6f31504a29
commit 46b20246db
37 changed files with 1646 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
server {
listen 80;
server_name {{ .DOMAINS }};
include {{ $.DOKKU_ROOT }}/{{ $.APP }}/nginx.conf.d/*.conf;
access_log {{ $.NGINX_ACCESS_LOG_PATH }}{{ if and ($.NGINX_ACCESS_LOG_FORMAT) (ne $.NGINX_ACCESS_LOG_PATH "off") }} {{ $.NGINX_ACCESS_LOG_FORMAT }}{{ end }};
error_log {{ $.NGINX_ERROR_LOG_PATH }};
}

View File

@@ -0,0 +1,8 @@
location /.well-known/acme-challenge {
# allow every ip address
allow all;
# disable http-auth for /.well-known/acme-challenge
auth_basic off;
root {{ .DOKKU_LIB_ROOT }}/data/letsencrypt/{{ .APP }};
}