updated html for ssl

This commit is contained in:
2025-11-16 13:53:05 +00:00
parent 53bb14d7a3
commit 06213302d7
3 changed files with 17 additions and 3 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
certbot/

View File

@@ -18,4 +18,4 @@ services:
volumes: volumes:
- ./certbot/conf:/etc/letsencrypt - ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot - ./certbot/www:/var/www/certbot
command: certonly --webroot -w /var/www/certbot --force-renewal --email adam.a.french@outlook.com -d adam-french.co.uk --agree-tos --staging command: certonly --webroot -w /var/www/certbot --email adam.a.french@outlook.com -d adam-french.co.uk --agree-tos

View File

@@ -11,6 +11,19 @@ http {
server_name _; server_name _;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
ssl_certificate /etc/letsencrypt/live/adam-french.co.uk/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/adam-french.co.uk/privkey.pem;
server_name adam-french.co.uk;
root /var/www/html;
index index.html;
location ~ /.well-known/acme-challenge/ { location ~ /.well-known/acme-challenge/ {
root /var/www/certbot; root /var/www/certbot;
} }