Skip to content

Commit

Permalink
Allow automatic certbot renewal by specifying a location block for th…
Browse files Browse the repository at this point in the history
…e ACME challenges
  • Loading branch information
memgonzales authored Dec 29, 2024
1 parent 290c292 commit 4a1b2f1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions nginx-bioinfodlsu-https.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ http {
listen 80;
server_name ricepilaf.bioinfodlsu.com;
server_tokens off;
return 301 https://ricepilaf.bioinfodlsu.com$request_uri;
location / {
return 301 https://ricepilaf.bioinfodlsu.com$request_uri;
}
}
server {
listen 443 ssl;
Expand All @@ -40,6 +42,10 @@ http {
location /static {
alias /app/static;
}
location /.well-known/acme-challenge/ {
allow all;
root /tmp/acme-challenge;
}
}
}
daemon off;
daemon off;

0 comments on commit 4a1b2f1

Please sign in to comment.