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

12 lines
359 B
Diff

diff --git a/cmd/admin_auth_oauth.go b/cmd/admin_auth_oauth.go
index c151c0af27..e8a4f34707 100644
--- a/cmd/admin_auth_oauth.go
+++ b/cmd/admin_auth_oauth.go
@@ -34,6 +34,7 @@ var (
Name: "secret",
Value: "",
Usage: "Client Secret",
+ EnvVars: []string{"FORGEJO_ADMIN_OAUTH2_SECRET"},
},
&cli.StringFlag{
Name: "auto-discover-url",