on master help sign in
Require users to accept Let's Encrypt terms
commit4759342ab3570888c027d4c58cb5694cb832d624 authorElliot Cameron <eacameron@gmail.com> dateThu 11 Jun 2020, 11:54 (6 years ago) parent011a4e3
2 files changed+10−1
default.nix+4−1 skeleton/default.nix+6
default.nix+4−1
@@ -2,6 +2,9 @@
22, profiling ? false
33, iosSdkVersion ? "10.2"
44, config ? {}
5+, terms ? { # Accepted terms, conditions, and licenses
6+ security.acme.acceptTerms = false;
7+ }
58, reflex-platform-func ? import ./dep/reflex-platform
69}:
710let
@@ -110,7 +113,7 @@ in rec {
110113 "${routeHost}".email = adminEmail;
111114 } else {};
112115
113− security.acme.${if enableHttps then "acceptTerms" else null} = true;
116+ security.acme.${if enableHttps && (terms.security.acme.acceptTerms or false) then "acceptTerms" else null} = true;
114117 };
115118
116119 mkObeliskApp =
skeleton/default.nix+6
@@ -1,10 +1,16 @@
11{ obelisk ? import ./.obelisk/impl {
22 system = builtins.currentSystem;
33 iosSdkVersion = "10.2";
4+
45 # You must accept the Android Software Development Kit License Agreement at
56 # https://developer.android.com/studio/terms in order to build Android apps.
67 # Uncomment and set this to `true` to indicate your acceptance:
78 # config.android_sdk.accept_license = false;
9+
10+ # In order to use Let's Encrypt for HTTPS deployments you must accept
11+ # their terms of service at https://letsencrypt.org/repository/.
12+ # Uncomment and set this to `true` to indicate your acceptance:
13+ # terms.security.acme.acceptTerms = false;
814 }
915}:
1016with obelisk;