-
Notifications
You must be signed in to change notification settings - Fork 0
/
init_certs.sh
executable file
·19 lines (15 loc) · 965 Bytes
/
init_certs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
# Note that lojban.com and lojban.net have TLS terminated at
# cloudflare, and redirect to lojban.org via cloudflare Rules.
podman exec -u root -it web certbot certonly --expand --standalone \
-d lojban.org \
-d mw.lojban.org -d mw-live.lojban.org -d mw-test.lojban.org \
-d jbotcan.org -d jbovlaste.lojban.org -d www.lojban.org \
-d vlasisku.lojban.org -d tiki.lojban.org -d test-vs.lojban.org \
-d camxes.lojban.org -d corpus.lojban.org -d jboski.lojban.org \
-d alis.lojban.org -d alice.lojban.org \
-d mail.lojban.org -d mailman.lojban.org \
--non-interactive --agree-tos --email [email protected] --http-01-port=8888
podman exec -u root -it web chown -R $(id -un):$(id -gn) /etc/letsencrypt/
cat containers/web/data/letsencrypt/live/lojban.org/fullchain.pem containers/web/data/letsencrypt/live/lojban.org/privkey.pem > containers/web/data/letsencrypt/live/lojban.org/haproxy.pem
systemctl --user restart web