We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebd4bce commit 08597c9Copy full SHA for 08597c9
extensions/nginx/index.js
@@ -158,8 +158,10 @@ class NginxExtension extends cli.Extension {
158
ctx.ssl.conf = conf;
159
ctx.ssl.http = conf.nginx.server;
160
161
+ let location = ctx.ssl.http.location;
162
+
163
// Don't add well-known block if it already exists
- if (ctx.ssl.http.location.length === 1) {
164
+ if (!Array.isArray(location) || location.length === 1) {
165
ctx.ssl.http._add('location', '~ /.well-known');
166
ctx.ssl.http.location[1]._add('allow', 'all');
167
}
0 commit comments