mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-02-22 08:31:30 +08:00
Remove AWS_REGION
This commit is contained in:
parent
ea4ba75c93
commit
cf2abd4f20
@ -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…
x
Reference in New Issue
Block a user