diff options
author | crupest <crupest@outlook.com> | 2022-11-20 16:25:33 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-11-20 16:25:33 +0800 |
commit | 4067ed5b45071109203369dd9b2647d37f434123 (patch) | |
tree | 9f1147555f972b5c53fe3e54b47610bc2cf25716 | |
parent | e664eed6cbda95684653b4b13a6430a36cbfd79c (diff) | |
download | crupest-4067ed5b45071109203369dd9b2647d37f434123.tar.gz crupest-4067ed5b45071109203369dd9b2647d37f434123.tar.bz2 crupest-4067ed5b45071109203369dd9b2647d37f434123.zip |
Fix nginx acme challenge problem.
-rw-r--r-- | template/nginx/reverse-proxy.conf.template | 4 | ||||
-rw-r--r-- | template/nginx/static-file.conf.template | 4 | ||||
-rwxr-xr-x | tool/aio.py | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/template/nginx/reverse-proxy.conf.template b/template/nginx/reverse-proxy.conf.template index 3526471..b17f042 100644 --- a/template/nginx/reverse-proxy.conf.template +++ b/template/nginx/reverse-proxy.conf.template @@ -27,4 +27,8 @@ server { location / { return 301 https://$host$request_uri; } + + location /.well-known/acme-challenge { + root /srv/acme; + } } diff --git a/template/nginx/static-file.conf.template b/template/nginx/static-file.conf.template index 0ada7cd..e35ccf3 100644 --- a/template/nginx/static-file.conf.template +++ b/template/nginx/static-file.conf.template @@ -16,4 +16,8 @@ server { location / { return 301 https://$host$request_uri; } + + location /.well-known/acme-challenge { + root /srv/acme; + } } diff --git a/tool/aio.py b/tool/aio.py index 3f3ab69..94e4460 100755 --- a/tool/aio.py +++ b/tool/aio.py @@ -67,7 +67,7 @@ clear_parser.add_argument("-D", "--include-data-dir", action="store_true", args = parser.parse_args() if args.action == "certbot": - if args.create or args.renew: + if args.create or args.renew or args.expand: args.no_hello = True if not args.no_hello: |