File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 139
139
'' ;
140
140
} ;
141
141
142
+ production = mkOption {
143
+ type = types . bool ;
144
+ default = true ;
145
+ description = ''
146
+ If set to true, use Let's Encrypt's production environment
147
+ instead of the staging environment. The main benefit of the
148
+ staging environment is to get much higher rate limits.
149
+
150
+ See
151
+ <literal>https://letsencrypt.org/docs/staging-environment</literal>
152
+ for more detail.
153
+ '' ;
154
+ } ;
155
+
142
156
certs = mkOption {
143
157
default = { } ;
144
158
type = with types ; attrsOf ( submodule certOpts ) ;
177
191
cmdline = [ "-v" "-d" domain "--default_root" data . webroot "--valid_min" cfg . validMin ]
178
192
++ optionals ( data . email != null ) [ "--email" data . email ]
179
193
++ concatMap ( p : [ "-f" p ] ) data . plugins
180
- ++ concatLists ( mapAttrsToList ( name : root : [ "-d" ( if root == null then name else "${ name } :${ root } " ) ] ) data . extraDomains ) ;
194
+ ++ concatLists ( mapAttrsToList ( name : root : [ "-d" ( if root == null then name else "${ name } :${ root } " ) ] ) data . extraDomains )
195
+ ++ ( if cfg . production then [ ]
196
+ else [ "--server" "https://acme-staging.api.letsencrypt.org/directory" ] ) ;
181
197
acmeService = {
182
198
description = "Renew ACME Certificate for ${ cert } " ;
183
199
after = [ "network.target" "network-online.target" ] ;
You can’t perform that action at this time.
0 commit comments