Skip to content

Commit 4a1b2f1

Browse files
authored
Allow automatic certbot renewal by specifying a location block for the ACME challenges
1 parent 290c292 commit 4a1b2f1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

nginx-bioinfodlsu-https.conf

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ http {
2222
listen 80;
2323
server_name ricepilaf.bioinfodlsu.com;
2424
server_tokens off;
25-
return 301 https://ricepilaf.bioinfodlsu.com$request_uri;
25+
location / {
26+
return 301 https://ricepilaf.bioinfodlsu.com$request_uri;
27+
}
2628
}
2729
server {
2830
listen 443 ssl;
@@ -40,6 +42,10 @@ http {
4042
location /static {
4143
alias /app/static;
4244
}
45+
location /.well-known/acme-challenge/ {
46+
allow all;
47+
root /tmp/acme-challenge;
48+
}
4349
}
4450
}
45-
daemon off;
51+
daemon off;

0 commit comments

Comments
 (0)