From 1fb9a75a33903c97e9f5db98fade7224de06b45c Mon Sep 17 00:00:00 2001 From: David Indra Date: Fri, 23 Feb 2024 15:33:38 +0100 Subject: [PATCH 1/2] Fix: increase max number of domains to 100 --- backend/schema/definitions.json | 2 +- frontend/js/app/nginx/certificates/form.js | 2 +- frontend/js/app/nginx/dead/form.js | 2 +- frontend/js/app/nginx/proxy/form.js | 2 +- frontend/js/app/nginx/redirection/form.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/schema/definitions.json b/backend/schema/definitions.json index 6e0cf6aa5..640093a08 100644 --- a/backend/schema/definitions.json +++ b/backend/schema/definitions.json @@ -172,7 +172,7 @@ "description": "Domain Names separated by a comma", "example": "*.jc21.com,blog.jc21.com", "type": "array", - "maxItems": 30, + "maxItems": 100, "uniqueItems": true, "items": { "type": "string", diff --git a/frontend/js/app/nginx/certificates/form.js b/frontend/js/app/nginx/certificates/form.js index d4a3b50a7..cab09155f 100644 --- a/frontend/js/app/nginx/certificates/form.js +++ b/frontend/js/app/nginx/certificates/form.js @@ -265,7 +265,7 @@ module.exports = Mn.View.extend({ this.ui.domain_names.selectize({ delimiter: ',', persist: false, - maxOptions: 30, + maxOptions: 100, create: function (input) { return { value: input, diff --git a/frontend/js/app/nginx/dead/form.js b/frontend/js/app/nginx/dead/form.js index 18d11ae0a..a091717d9 100644 --- a/frontend/js/app/nginx/dead/form.js +++ b/frontend/js/app/nginx/dead/form.js @@ -233,7 +233,7 @@ module.exports = Mn.View.extend({ this.ui.domain_names.selectize({ delimiter: ',', persist: false, - maxOptions: 30, + maxOptions: 100, create: function (input) { return { value: input, diff --git a/frontend/js/app/nginx/proxy/form.js b/frontend/js/app/nginx/proxy/form.js index 98f645669..4437a6ddd 100644 --- a/frontend/js/app/nginx/proxy/form.js +++ b/frontend/js/app/nginx/proxy/form.js @@ -271,7 +271,7 @@ module.exports = Mn.View.extend({ this.ui.domain_names.selectize({ delimiter: ',', persist: false, - maxOptions: 30, + maxOptions: 100, create: function (input) { return { value: input, diff --git a/frontend/js/app/nginx/redirection/form.js b/frontend/js/app/nginx/redirection/form.js index ef48ffd17..5d061ff7d 100644 --- a/frontend/js/app/nginx/redirection/form.js +++ b/frontend/js/app/nginx/redirection/form.js @@ -235,7 +235,7 @@ module.exports = Mn.View.extend({ this.ui.domain_names.selectize({ delimiter: ',', persist: false, - maxOptions: 30, + maxOptions: 100, create: function (input) { return { value: input, From 10ece3548d42aa5dba424816f065827fdaf3f990 Mon Sep 17 00:00:00 2001 From: David Indra Date: Tue, 27 Feb 2024 00:42:58 +0100 Subject: [PATCH 2/2] Fixing "the map directive is not allowed here" at the validation stage (see https://github.com/NginxProxyManager/nginx-proxy-manager/pull/3478) --- backend/templates/_location.conf | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/templates/_location.conf b/backend/templates/_location.conf index c561c2742..2ee0d31bb 100644 --- a/backend/templates/_location.conf +++ b/backend/templates/_location.conf @@ -1,5 +1,3 @@ - {% include "_hsts_map.conf" %} - location {{ path }} { proxy_set_header Host $host; proxy_set_header X-Forwarded-Scheme $scheme;