Open bwindels opened 5 years ago
use toml for config format? like so:
[ tls ]
# points to a directory with a cert.der and private_key.der file
wwwcert = "/etc/letsencrypt/live/www.windels.cloud/"
[ users ]
family = "somepass"
friends = "someotherpass"
[ "www.windels.cloud" ]
cert = "wwwcert"
aliases = [ "windels.cloud", "bruno.windels.cloud" ]
"/.well-known/acme-challenge/" = "/var/acme-challenge/www.windels.cloud/.well-known/acme-challenge/"
"/" = "/home/bruno/www/home/"
[ "photos.bruno.windels.cloud" ]
cert = "wwwcert"
"/.well-known/acme-challenge/" = "/var/acme-challenge/photos.bruno.windels.cloud/.well-known/acme-challenge/"
"/" = "/home/bruno/www/photos/landing-page/"
"/croatia-2019/" = "/home/bruno/www/photos/croatia-2019/"
"/scotland-2017/" = "/home/bruno/www/photos/scotland-2017/"
"/us-ca-2018/" = {
path = "/home/bruno/www/photos/us-ca-2018/",
users = [ "family", "friends" ]
realm = "Vakantiefotos USA & Canada 2018"
}
paths should be evaluated in order of definition
As let's encrypt integration is proving to be quite a bit of work, let's use certbot for now.