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 = {
273273 return new Promise ( ( resolve , reject ) => {
274274 let template = null ;
275275 let filename = '/data/nginx/temp/letsencrypt_' + certificate . id + '.conf' ;
276+
276277 try {
277278 template = fs . readFileSync ( __dirname + '/../templates/letsencrypt-request.conf' , { encoding : 'utf8' } ) ;
278279 } catch ( err ) {
279280 reject ( new error . ConfigurationError ( err . message ) ) ;
280281 return ;
281282 }
282283
284+ certificate . ipv6 = internalNginx . ipv6Enabled ( ) ;
285+
283286 renderEngine
284287 . parseAndRender ( template , certificate )
285288 . then ( ( config_text ) => {
Original file line number Diff line number Diff line change 22
33server {
44 listen 80;
5+ {% if ipv6 -%}
6+ listen [::]:80;
7+ {% endif %}
8+
59 server_name {{ domain_names | join: " " }};
610
711 access_log /data/logs/letsencrypt-requests.log standard;
You can’t perform that action at this time.
0 commit comments