refactor(s3): read S3 secrets through app config

This commit is contained in:
kk10
2026-11-02 15:12:11 +03:00
parent 635620d627
commit 9b38e090ee
3 changed files with 59 additions and 59 deletions
+5 -1
View File
@@ -4,11 +4,15 @@ import (
"fmt"
"os"
"mtusi2026-messenger/internal/config"
"mtusi2026-messenger/internal/s3"
)
func main() {
if err := s3.WriteConfig("/config/s3.json"); err != nil {
cfg := config.LoadS3()
err := s3.WriteConfig("/config/s3.json", cfg)
if err != nil {
fmt.Fprintln(os.Stderr, "s3config:", err)
os.Exit(1)
}