Browse Source

Add info on accepting terms and conditions.

master
Chris Smith 6 years ago
parent
commit
44b37883f5
Signed by: Chris Smith <chris@chameth.com> GPG Key ID: 3A2D4BBDC4A3C9A9
2 changed files with 19 additions and 2 deletions
  1. 11
    0
      README.md
  2. 8
    2
      run.sh

+ 11
- 0
README.md View File

@@ -13,6 +13,17 @@ are added.
13 13
 
14 14
 ## Usage
15 15
 
16
+### Accepting Let's Encrypt's terms
17
+
18
+In order to issue certificates with Let's Encrypt, you must agree to the
19
+Let's Encrypt terms of service. You can do this by running the command
20
+`/dehydrated --register --accept-terms` from within the container.
21
+
22
+For ease of automation, you can define the `ACCEPT_CA_TERMS` env var
23
+(with any non-empty value) to automatically accept the terms. Be warned
24
+that doing so will automatically accept any future changes to the terms
25
+of service.
26
+
16 27
 ### Defining domains
17 28
 
18 29
 The container defines one volume at `/letsencrypt`, and expects there to be

+ 8
- 2
run.sh View File

@@ -8,9 +8,15 @@ interrupt() {
8 8
 
9 9
 trap interrupt SIGINT
10 10
 
11
+if [ -n "${ACCEPT_CA_TERMS:-}" ]; then
12
+  DEHYDRATED_CMD="/dehydrated --accept-terms"
13
+else
14
+  DEHYDRATED_CMD="/dehydrated"
15
+fi
16
+
11 17
 while true; do
12
-  /dehydrated --cron --hook /dns/hook --challenge dns-01
13
-  /dehydrated --cleanup
18
+  $DEHYDRATED_CMD --cron --hook /dns/hook --challenge dns-01
19
+  $DEHYDRATED_CMD --cleanup
14 20
   inotifywait --timeout 86400 /letsencrypt/domains.txt
15 21
   sleep 60
16 22
 done

Loading…
Cancel
Save