mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 17:05:32 +00:00
allow certbot to connect to challenge location via HTTP Port 80
This commit is contained in:
parent
d401eb9163
commit
abc9688452
|
@ -4,8 +4,17 @@
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name _ default_server;
|
server_name _ default_server;
|
||||||
|
# allow certbot to connect to challenge location via HTTP Port 80
|
||||||
|
# otherwise renewal request will fail
|
||||||
|
location /.well-known/acme-challenge/ {
|
||||||
|
alias /var/www/challenges/;
|
||||||
|
try_files $uri =404;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
rewrite ^ https://{{ domain }}$request_uri? permanent;
|
rewrite ^ https://{{ domain }}$request_uri? permanent;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
|
Loading…
Reference in a new issue