File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -273,13 +273,16 @@ const internalNginx = {
273
273
return new Promise ( ( resolve , reject ) => {
274
274
let template = null ;
275
275
let filename = '/data/nginx/temp/letsencrypt_' + certificate . id + '.conf' ;
276
+
276
277
try {
277
278
template = fs . readFileSync ( __dirname + '/../templates/letsencrypt-request.conf' , { encoding : 'utf8' } ) ;
278
279
} catch ( err ) {
279
280
reject ( new error . ConfigurationError ( err . message ) ) ;
280
281
return ;
281
282
}
282
283
284
+ certificate . ipv6 = internalNginx . ipv6Enabled ( ) ;
285
+
283
286
renderEngine
284
287
. parseAndRender ( template , certificate )
285
288
. then ( ( config_text ) => {
Original file line number Diff line number Diff line change 2
2
3
3
server {
4
4
listen 80;
5
+ {% if ipv6 -%}
6
+ listen [::]:80;
7
+ {% endif %}
8
+
5
9
server_name {{ domain_names | join: " " }};
6
10
7
11
access_log /data/logs/letsencrypt-requests.log standard;
You can’t perform that action at this time.
0 commit comments