mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-10-24 19:12:24 +00:00
[BRANDING] parse FORGEJO__* in the container environment
(cherry picked from commitb075991747) (cherry picked from commitda3f76228e) (cherry picked from commit20d196e74f) (cherry picked from commit0bf8b1824e) (cherry picked from commit655bb770a7) (cherry picked from commitd69d5c2c46) (cherry picked from commit00b55e5a53) (cherry picked from commit456121fd8a) (cherry picked from commit9716a158e4) (cherry picked from commit7d60a6f511) (cherry picked from commitd32a6d9437) (cherry picked from commitee1de38527) (cherry picked from commit54e7799d13) (cherry picked from commit4f04da7ab7) (cherry picked from commit3e001364eb) (cherry picked from commitd2d5193b38) (cherry picked from commiteb1f015c42) (cherry picked from commitc4587aa893) (cherry picked from commit6e340be917) Conflicts: contrib/environment-to-ini/environment-to-ini.go https://codeberg.org/forgejo/forgejo/pulls/1773
This commit is contained in:
parent
e35b0a2130
commit
24fed529fc
3 changed files with 23 additions and 14 deletions
|
|
@ -16,15 +16,15 @@ func main() {
|
|||
app := cli.NewApp()
|
||||
app.Name = "environment-to-ini"
|
||||
app.Usage = "Use provided environment to update configuration ini"
|
||||
app.Description = `As a helper to allow docker users to update the gitea configuration
|
||||
app.Description = `As a helper to allow docker users to update the forgejo configuration
|
||||
through the environment, this command allows environment variables to
|
||||
be mapped to values in the ini.
|
||||
|
||||
Environment variables of the form "GITEA__SECTION_NAME__KEY_NAME"
|
||||
Environment variables of the form "FORGEJO__SECTION_NAME__KEY_NAME"
|
||||
will be mapped to the ini section "[section_name]" and the key
|
||||
"KEY_NAME" with the value as provided.
|
||||
|
||||
Environment variables of the form "GITEA__SECTION_NAME__KEY_NAME__FILE"
|
||||
Environment variables of the form "FORGEJO__SECTION_NAME__KEY_NAME__FILE"
|
||||
will be mapped to the ini section "[section_name]" and the key
|
||||
"KEY_NAME" with the value loaded from the specified file.
|
||||
|
||||
|
|
@ -42,8 +42,8 @@ func main() {
|
|||
...
|
||||
"""
|
||||
|
||||
You would set the environment variables: "GITEA__LOG_0x2E_CONSOLE__COLORIZE=false"
|
||||
and "GITEA__LOG_0x2E_CONSOLE__STDERR=false". Other examples can be found
|
||||
You would set the environment variables: "FORGEJO__LOG_0x2E_CONSOLE__COLORIZE=false"
|
||||
and "FORGEJO__LOG_0x2E_CONSOLE__STDERR=false". Other examples can be found
|
||||
on the configuration cheat sheet.`
|
||||
app.Flags = []cli.Flag{
|
||||
&cli.StringFlag{
|
||||
|
|
@ -62,7 +62,7 @@ func main() {
|
|||
Name: "work-path",
|
||||
Aliases: []string{"w"},
|
||||
Value: setting.AppWorkPath,
|
||||
Usage: "Set the gitea working path",
|
||||
Usage: "Set the forgejo working path",
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "out",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue