Skip to content

Commit

Permalink
Remove AWS_REGION
Browse files Browse the repository at this point in the history
  • Loading branch information
patapancakes committed Oct 23, 2024
1 parent ea4ba75 commit cf2abd4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/daily/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ func S3SaveMigration() error {
o.BaseEndpoint = aws.String(os.Getenv("AWS_ENDPOINT_URL_S3"))
})

// retrieve accounts from db
_, err := svc.CreateBucket(context.Background(), &s3.CreateBucketInput{
Bucket: aws.String("pokerogue-system"),
})
if err != nil {
log.Printf("error while creating bucket (already exists?): %s", err)
}

// retrieve accounts from db
accounts, err := db.RetrieveOldAccounts()
if err != nil {
return fmt.Errorf("failed to retrieve old accounts: %s", err)
Expand Down
1 change: 0 additions & 1 deletion docker-compose.Example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ services:
callbackurl: http://localhost:8001
AWS_ACCESS_KEY_ID: <access>
AWS_SECRET_ACCESS_KEY: <secret>
AWS_REGION: <region>
AWS_ENDPOINT_URL_S3: <endpoint>

depends_on:
Expand Down
1 change: 1 addition & 0 deletions rogueserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func main() {
account.GoogleCallbackURL = callbackurl + "/auth/google/callback"
account.DiscordSession, _ = discordgo.New("Bot " + discordbottoken)
account.DiscordGuildID = discordguildid

// register gob types
gob.Register([]interface{}{})
gob.Register(map[string]interface{}{})
Expand Down

0 comments on commit cf2abd4

Please sign in to comment.