bwindels / wwwee

wwwee, the wee webserver: a small, robust, low-resource and fast web application server for low workloads (home server, personal cloud)
GNU General Public License v3.0
26 stars 1 forks source link

Make integration with certbot possible #40

Open bwindels opened 5 years ago

bwindels commented 5 years ago

As let's encrypt integration is proving to be quite a bit of work, let's use certbot for now.

bwindels commented 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"
}
bwindels commented 5 years ago

paths should be evaluated in order of definition

bwindels commented 5 years ago

see https://github.com/bwindels/wwwee/issues/18

bwindels commented 5 years ago

https://certbot.eff.org/docs/using.html#webroot