From abe9c641ce6e6fd1c815c61105daead2c6676324 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Wed, 12 Jul 2023 02:01:38 -0400 Subject: [PATCH] Show correct SSL Mode on "install page" (#25818) (#25838) Backport #25818 by @wxiaoguang Fix #25817 ![image](https://github.com/go-gitea/gitea/assets/2114189/49f7b85d-c229-41b5-86fd-58cd812eaca6) Co-authored-by: wxiaoguang --- routers/install/install.go | 1 + templates/install.tmpl | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/routers/install/install.go b/routers/install/install.go index a2e89d3dac..6a8f561271 100644 --- a/routers/install/install.go +++ b/routers/install/install.go @@ -102,6 +102,7 @@ func Install(ctx *context.Context) { form.DbName = setting.Database.Name form.DbPath = setting.Database.Path form.DbSchema = setting.Database.Schema + form.SSLMode = setting.Database.SSLMode curDBType := setting.Database.Type.String() var isCurDBTypeSupported bool diff --git a/templates/install.tmpl b/templates/install.tmpl index 24533e1a5c..eec1771eae 100644 --- a/templates/install.tmpl +++ b/templates/install.tmpl @@ -28,7 +28,7 @@ -
+
@@ -47,7 +47,7 @@
-
+
-
+