README: add letsencrypt configuration

This commit is contained in:
Alexandre Iooss 2022-10-12 11:12:31 +02:00
parent cf955fc53b
commit 3b4ab05952
3 changed files with 27 additions and 1 deletions

View file

@ -0,0 +1,21 @@
# To generate the certificate, please use the following command
# certbot --config /etc/letsencrypt/conf.d/photos.crans.org.ini certonly
# Use a 4096 bit RSA key instead of 2048
rsa-key-size = 4096
# Uncomment and update to register with the specified e-mail address
email = photos@crans.org
# Uncomment to use a text interface instead of ncurses
text = True
# Yes I want to sell my soul and my guinea pig.
# UNCOMMENT ME when deploying this file to agree to terms
#agree-tos = True
# Use NGINX challenge
authenticator = nginx
cert-name = photos.crans.org
domains = photos.crans.org

2
docs/renewal-hooks_post_nginx Executable file
View file

@ -0,0 +1,2 @@
#!/bin/bash
nginx -t && nginx -s reload