add letsencrypt challenge block for easier automation of letsencrypt cert setup.
This commit is contained in:
parent
39093b1486
commit
52674a4189
@ -19,6 +19,12 @@ server {
|
|||||||
# Default server block rules
|
# Default server block rules
|
||||||
include global/server/defaults.conf;
|
include global/server/defaults.conf;
|
||||||
|
|
||||||
|
# LetsEncrypt acme-challenge
|
||||||
|
location ^~ /.well-known/acme-challenge {
|
||||||
|
root /sites/letsencrypt/public;
|
||||||
|
try_files $uri $uri/ =404;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php?$args;
|
try_files $uri $uri/ /index.php?$args;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user