Skip to content

Commit

Permalink
fix: recertification error
Browse files Browse the repository at this point in the history
  • Loading branch information
aerin-brown-codes authored Jan 24, 2024
1 parent bf0d6c1 commit 69b0aeb
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions user_conf.d/myportfolio.conf
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
server {
listen 80;
listen [::]:80;
server_name aerinbrownportfolio.duckdns.org;

if ($host = aerinbrownportfolio.duckdns.org) {
return 301 https://$host$request_uri;
location ^~ /.well-known/acme-challenge/ {
allow all;
root /var/www/certbot;
}
location / {
if ($host = aerinbrownportfolio.duckdns.org) {
return 301 https://$host$request_uri;
}
}
}

Expand All @@ -30,4 +36,4 @@ server {
ssl_certificate /etc/letsencrypt/live/myportfolio/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/myportfolio/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/myportfolio/chain.pem;
}
}

0 comments on commit 69b0aeb

Please sign in to comment.