Skip to content

Commit

Permalink
chore: certificates for howmuchsugare and madenear.me
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgarel authored and root committed Nov 22, 2023
1 parent c327355 commit b9623f8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
8 changes: 7 additions & 1 deletion confs/proxy-off/nginx/howmuchsugar.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ server {
listen [::]:80;
server_name howmuchsugar.in combiendesucres.fr;

return 301 https://$host$request_uri;
location /.well-known {
root /var/www/html;
try_files $uri =404;
}
location / {
return 301 https://$host$request_uri;
}
}
# howmuchsugar redirects
server {
Expand Down
15 changes: 11 additions & 4 deletions confs/proxy-off/nginx/madenear.me
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ server {
listen [::]:80;
server_name madenear.me cestemballepresdechezvous.fr madenear.me.uk;

return 301 https://$host$request_uri;
location /.well-known {
root /var/www/html;
try_files $uri =404;
}
location / {
return 301 https://$host$request_uri;
}
}
# madenearme redirects
server {
Expand Down Expand Up @@ -34,9 +40,9 @@ server {
server_name madenear.me cestemballepresdechezvous.fr madenear.me.uk;

# SSL/TLS settings
ssl_certificate /etc/letsencrypt/live/madenear.me/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/madenear.me/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/madenear.me/chain.pem;
ssl_certificate /etc/letsencrypt/live/madenear.me-0001/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/madenear.me-0001/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/madenear.me-0001/chain.pem;

# Harden SSL
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
Expand Down Expand Up @@ -67,6 +73,7 @@ server {
proxy_set_header Host $host;
client_max_body_size 512M;
}

}


Expand Down

0 comments on commit b9623f8

Please sign in to comment.