Remove AWS_REGION

styling-fixes
Pancakes 1 month ago
parent ea4ba75c93
commit cf2abd4f20
No known key found for this signature in database
GPG Key ID: 5792877BFA27DC8F

@ -124,7 +124,6 @@ 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"),
})
@ -132,6 +131,7 @@ func S3SaveMigration() error {
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)

@ -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:

@ -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{}{})

Loading…
Cancel
Save