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

13 lines
359 B
Diff
Raw Normal View History

2024-06-04 17:01:37 +03:00
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 (
2023-07-23 23:23:17 +03:00
Name: "secret",
Value: "",
Usage: "Client Secret",
2024-06-04 17:01:37 +03:00
+ EnvVars: []string{"FORGEJO_ADMIN_OAUTH2_SECRET"},
2023-07-23 23:23:17 +03:00
},
2024-06-04 17:01:37 +03:00
&cli.StringFlag{
2023-07-23 23:23:17 +03:00
Name: "auto-discover-url",