From 53dbe258a555f5c877ca85b8df615601034c8bcf Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Tue, 17 Oct 2023 11:57:14 +1000 Subject: [PATCH 1/5] Fix CI compose project name not allowing dots --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 862b2470..7fafb084 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,7 +17,7 @@ pipeline { IMAGE = 'nginx-proxy-manager' BUILD_VERSION = getVersion() MAJOR_VERSION = '2' - BRANCH_LOWER = "${BRANCH_NAME.toLowerCase().replaceAll('/', '-')}" + BRANCH_LOWER = "${BRANCH_NAME.toLowerCase().replaceAll('/', '-').replaceAll('.', '-')}" COMPOSE_PROJECT_NAME = "npm_${BRANCH_LOWER}_${BUILD_NUMBER}" COMPOSE_FILE = 'docker/docker-compose.ci.yml' COMPOSE_INTERACTIVE_NO_CLI = 1 From 134902d1272576c79e5e38550eb1469a012e8d43 Mon Sep 17 00:00:00 2001 From: chishin Date: Sun, 29 Oct 2023 10:43:57 +0800 Subject: [PATCH 2/5] Add a default-site-description string --- frontend/js/i18n/messages.json | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/js/i18n/messages.json b/frontend/js/i18n/messages.json index d77351d6..44b638a3 100644 --- a/frontend/js/i18n/messages.json +++ b/frontend/js/i18n/messages.json @@ -285,6 +285,7 @@ "settings": { "title": "Settings", "default-site": "Default Site", + "default-site-description": "What to show when Nginx is hit with an unknown Host", "default-site-congratulations": "Congratulations Page", "default-site-404": "404 Page", "default-site-444": "No Response (444)", From 940d06cac90de7f39e0a1cafce4bba4ecbaafa08 Mon Sep 17 00:00:00 2001 From: chishin Date: Sun, 29 Oct 2023 10:50:45 +0800 Subject: [PATCH 3/5] Replace the 'default-site' variable 'description' with the 'i18n' configuration --- frontend/js/app/settings/default-site/main.ejs | 2 +- frontend/js/app/settings/list/item.ejs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/js/app/settings/default-site/main.ejs b/frontend/js/app/settings/default-site/main.ejs index f1c4ccf6..d74ac0bd 100644 --- a/frontend/js/app/settings/default-site/main.ejs +++ b/frontend/js/app/settings/default-site/main.ejs @@ -8,7 +8,7 @@
-
<%- description %>
+
<%- i18n('settings', 'default-site-description') %>