this repo has no description smallweb.run
smallweb
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove global secrets

pomdtr ff15bf11 6f210419

+2 -16
+2 -16
app/app.go
··· 127 127 Env: make(map[string]string), 128 128 } 129 129 130 - for _, dotenvPath := range []string{ 131 - filepath.Join(rootDir, ".env"), 132 - filepath.Join(appDir, ".env"), 133 - } { 134 - if !utils.FileExists(dotenvPath) { 135 - continue 136 - } 137 - 130 + if dotenvPath := filepath.Join(appDir, ".env"); utils.FileExists(dotenvPath) { 138 131 dotenv, err := godotenv.Read(dotenvPath) 139 132 if err != nil { 140 133 return App{}, fmt.Errorf("could not read .env: %v", err) ··· 145 138 } 146 139 } 147 140 148 - for _, secretPath := range []string{ 149 - filepath.Join(rootDir, ".smallweb", "secrets.enc.env"), 150 - filepath.Join(appDir, "secrets.enc.env"), 151 - } { 152 - if !utils.FileExists(secretPath) { 153 - continue 154 - } 155 - 141 + if secretPath := filepath.Join(appDir, "secrets.enc.env"); utils.FileExists(secretPath) { 156 142 rawBytes, err := os.ReadFile(secretPath) 157 143 if err != nil { 158 144 return App{}, fmt.Errorf("could not read file: %v", err)