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

13 lines
303 B
Diff
Raw Permalink Normal View History

2023-07-23 23:23:17 +03:00
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",