depot/patches/base/forgejo/oauth2-secret-from-env.patch

12 lines
303 B
Diff

diff --git a/cmd/admin.go b/cmd/admin.go
index f9fb1b6c6..2725b1f1c 100644
--- a/cmd/admin.go
+++ b/cmd/admin.go
@@ -151,6 +151,7 @@ var (
Name: "secret",
Value: "",
Usage: "Client Secret",
+ EnvVar: "FORGEJO_ADMIN_OAUTH2_SECRET",
},
cli.StringFlag{
Name: "auto-discover-url",