-
+

{{.locale.Tr "install.title"}} @@ -148,8 +148,8 @@ {{.locale.Tr "install.log_root_path_helper"}}

-
- +
+
{{.locale.Tr "install.enable_update_checker_helper"}} @@ -161,7 +161,7 @@
- + {{.locale.Tr "install.email_title"}}
@@ -201,7 +201,7 @@
- + {{.locale.Tr "install.server_service_title"}}
@@ -299,7 +299,7 @@
- + {{.locale.Tr "install.admin_title"}}

{{.locale.Tr "install.admin_setting_desc"}}

@@ -321,10 +321,27 @@
+ {{if .EnvConfigKeys}} + +

{{.locale.Tr "install.env_config_keys"}}

+
+
+ {{.locale.Tr "install.env_config_keys_prompt"}} +
+
+ {{range .EnvConfigKeys}}{{.}}{{end}} +
+
+ {{end}} +
- - +
+ These configuration options will be written into: {{.CustomConfFile}} +
+
+ +
diff --git a/web_src/css/install.css b/web_src/css/install.css index a65a213fd5e2e..5137a584e1f42 100644 --- a/web_src/css/install.css +++ b/web_src/css/install.css @@ -1,5 +1,6 @@ -.page-content.install { - padding-top: 45px; +.page-content.install .install-config-container { + max-width: 900px; + margin: auto; } .page-content.install form.ui.form .inline.field > label { @@ -9,7 +10,8 @@ margin-right: 0; } -.page-content.install form.ui.form .inline.field > .ui.checkbox:first-child { +.page-content.install .ui.form .field .help, +.page-content.install .ui.form .field .right-content { margin-left: 30%; padding-left: 5px; } @@ -18,17 +20,12 @@ width: auto; } -.page-content.install form.ui.form .title { - margin-left: 30%; - padding-left: 5px; -} - .page-content.install form.ui.form input { width: 60%; } .page-content.install form.ui.form details.optional.field[open] { - border-bottom: 1px solid var(--color-secondary); + border-bottom: 1px dashed var(--color-secondary); padding-bottom: 10px; } @@ -44,12 +41,6 @@ text-align: left; } -.page-content.install form.ui.form .field .help { - margin-left: 30%; - padding-left: 5px; - width: 60%; -} - .page-content.install .ui .reinstall-message { width: 70%; margin: 20px auto; From 88dee0341ba75a5cc53282dc244ca0887de08c8b Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Wed, 5 Jul 2023 16:18:48 +0800 Subject: [PATCH 2/3] merge inline field styles --- templates/install.tmpl | 2 +- web_src/css/install.css | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/templates/install.tmpl b/templates/install.tmpl index a2f95365f394e..ebda8348990aa 100644 --- a/templates/install.tmpl +++ b/templates/install.tmpl @@ -148,7 +148,7 @@ {{.locale.Tr "install.log_root_path_helper"}}
-
+
diff --git a/web_src/css/install.css b/web_src/css/install.css index 5137a584e1f42..4ac294e902c53 100644 --- a/web_src/css/install.css +++ b/web_src/css/install.css @@ -10,13 +10,11 @@ margin-right: 0; } -.page-content.install .ui.form .field .help, -.page-content.install .ui.form .field .right-content { +.page-content.install .ui.form .field > .help, +.page-content.install .ui.form .field > .ui.checkbox:first-child, +.page-content.install .ui.form .field > .right-content { margin-left: 30%; padding-left: 5px; -} - -.page-content.install form.ui.form .inline.field > .ui.checkbox:first-child label { width: auto; } From 2a5d37e3714d3022f1d75e97c9dd2ef7e963a1ae Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Thu, 6 Jul 2023 19:19:29 +0800 Subject: [PATCH 3/3] doc --- docs/content/doc/installation/with-docker-rootless.en-us.md | 2 +- docs/content/doc/installation/with-docker.en-us.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/doc/installation/with-docker-rootless.en-us.md b/docs/content/doc/installation/with-docker-rootless.en-us.md index b8c76438f9f68..148d6b9f645aa 100644 --- a/docs/content/doc/installation/with-docker-rootless.en-us.md +++ b/docs/content/doc/installation/with-docker-rootless.en-us.md @@ -288,7 +288,7 @@ docker-compose up -d In addition to the environment variables above, any settings in `app.ini` can be set or overridden with an environment variable of the form: `GITEA__SECTION_NAME__KEY_NAME`. -These settings are applied each time the docker container starts. +These settings are applied each time the docker container starts, and won't be passed into Gitea's sub-processes. Full information [here](https://github.com/go-gitea/gitea/tree/main/contrib/environment-to-ini). These environment variables can be passed to the docker container in `docker-compose.yml`. diff --git a/docs/content/doc/installation/with-docker.en-us.md b/docs/content/doc/installation/with-docker.en-us.md index e70a6ab1331fd..a7a575293d3ce 100644 --- a/docs/content/doc/installation/with-docker.en-us.md +++ b/docs/content/doc/installation/with-docker.en-us.md @@ -289,7 +289,7 @@ docker-compose up -d In addition to the environment variables above, any settings in `app.ini` can be set or overridden with an environment variable of the form: `GITEA__SECTION_NAME__KEY_NAME`. -These settings are applied each time the docker container starts. +These settings are applied each time the docker container starts, and won't be passed into Gitea's sub-processes. Full information [here](https://github.com/go-gitea/gitea/tree/master/contrib/environment-to-ini). These environment variables can be passed to the docker container in `docker-compose.yml`.