diff --git a/etc/nginx/sites-available/marcleopold b/etc/nginx/sites-available/marcleopold index 9dde7f3..292430e 100644 --- a/etc/nginx/sites-available/marcleopold +++ b/etc/nginx/sites-available/marcleopold @@ -1,6 +1,4 @@ server { - listen 80; - listen [::]80; server_name marcleopold.isnet.uk; @@ -15,6 +13,14 @@ server { proxy_set_header X-Forwarded-Proto $scheme; } + + listen [::]:443 ssl; # managed by Certbot + listen 443 ssl; # managed by Certbot + ssl_certificate /etc/letsencrypt/live/marcleopold.isnet.uk/fullchain.pem; # managed by Certbot + ssl_certificate_key /etc/letsencrypt/live/marcleopold.isnet.uk/privkey.pem; # managed by Certbot + include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot + ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot + } server { @@ -52,3 +58,17 @@ server { server_name cms.marcleopold.isnet.uk; return 404; # managed by Certbot } +server { + if ($host = marcleopold.isnet.uk) { + return 301 https://$host$request_uri; + } # managed by Certbot + + + listen 80; + listen [::]80; + + server_name marcleopold.isnet.uk; + return 404; # managed by Certbot + + +} \ No newline at end of file diff --git a/server/storage/database.sqlite b/server/storage/database.sqlite index e82d0a2..95e63dc 100755 Binary files a/server/storage/database.sqlite and b/server/storage/database.sqlite differ