添加 ssl 插件
This commit is contained in:
7
plugins/letsencrypt/templates/default-nginx.conf.sigil
Normal file
7
plugins/letsencrypt/templates/default-nginx.conf.sigil
Normal 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 }};
|
||||
}
|
||||
8
plugins/letsencrypt/templates/letsencrypt.conf.sigil
Normal file
8
plugins/letsencrypt/templates/letsencrypt.conf.sigil
Normal 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 }};
|
||||
}
|
||||
Reference in New Issue
Block a user