corrected letsencrypt acme challenge configs
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name {{ ci_server_name }};
|
server_name {{ ci_server_name }};
|
||||||
|
|
||||||
location /.well-known {
|
location '/.well-known/acme-challenge' {
|
||||||
root /srv/http/letsencrypt;
|
default_type "text/plain";
|
||||||
try_files $uri $uri/ =404;
|
root /srv/http/letsencrypt;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,12 +10,12 @@ server {
|
|||||||
listen 80;
|
listen 80;
|
||||||
server_name {{ parts_server_name }};
|
server_name {{ parts_server_name }};
|
||||||
|
|
||||||
location /.well-known {
|
location '/.well-known/acme-challenge' {
|
||||||
root /srv/http/letsencrypt;
|
default_type "text/plain";
|
||||||
try_files $uri $uri/ =404;
|
root /srv/http/letsencrypt;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
return 302 https://$host$request_uri;
|
return 302 https://$host$request_uri;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user