ALLOWED_REPOS => ALLOWED_USERS

This commit is contained in:
Cat /dev/Nulo 2023-01-22 22:22:12 -03:00
parent f270be5992
commit 0838dffc81

View file

@ -41,8 +41,8 @@ type config struct {
func parseConfig() (c config) { func parseConfig() (c config) {
var allowedUsersStr string var allowedUsersStr string
if allowedUsersStr = os.Getenv("ALLOWED_REPOS"); len(allowedUsersStr) == 0 { if allowedUsersStr = os.Getenv("ALLOWED_USERS"); len(allowedUsersStr) == 0 {
log.Fatal("ALLOWED_REPOS is nil") log.Fatal("ALLOWED_USERS is nil")
} }
c.allowedUsers = strings.Split(allowedUsersStr, ",") c.allowedUsers = strings.Split(allowedUsersStr, ",")