Skip to content

Commit

Permalink
Remove unused env AWS_API_ID (#931)
Browse files Browse the repository at this point in the history
  • Loading branch information
harryzcy authored Feb 17, 2024
1 parent 04bee7a commit 3118008
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Web Interface for Mailbox.
docker run --env AWS_ACCESS_KEY_ID=<AWS_ACCESS_KEY_ID> \
--env AWS_SECRET_ACCESS_KEY=<AWS_SECRET_ACCESS_KEY> \
--env AWS_REGION=<AWS_REGION> \
---env AWS_API_ID=<AWS_API_ID> \
--env AWS_API_GATEWAY_ENDPOINT=<AWS_API_GATEWAY_ENDPOINT> \
harryzcy/mailbox-browser
```
Expand Down Expand Up @@ -40,7 +39,6 @@ During runtime:
- `AWS_ACCESS_KEY_ID`: AWS access key id
- `AWS_SECRET_ACCESS_KEY`: AWS secret access key
- `AWS_REGION`: AWS region code
- `AWS_API_ID`: AWS API Gateway ID
- `AWS_API_GATEWAY_ENDPOINT`: AWS API Gateway endpoint
- `EMAIL_ADDRESSES`: a comma-separated list of email addresses/domains to send email from (required for replying emails)
- `PROXY_ENABLE` (optional): whether to proxy email images, must be `true` (default) or `false`
Expand Down
2 changes: 0 additions & 2 deletions bff/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ var (
AWSRegion string
AWSAccessKeyID string
AWSSecretAccessKey string
AWSAPIID string
AWSAPIGatewayEndpoint string

EmailAddresses []string
Expand Down Expand Up @@ -75,7 +74,6 @@ func load(logger *zap.Logger) error {
AWSAccessKeyID = getString(v, "aws.accessKeyID", "AWS_ACCESS_KEY_ID")
AWSSecretAccessKey = getString(v, "aws.secretAccessKey", "AWS_SECRET_ACCESS_KEY")
AWSAPIGatewayEndpoint = strings.TrimSuffix(getString(v, "aws.apiGateway.endpoint", "AWS_API_GATEWAY_ENDPOINT"), "/")
AWSAPIID = getString(v, "aws.apiGateway.apiID", "AWS_API_ID")

// comma separated list of email addresses or domains, required for email replies
EmailAddresses = strings.Split(getString(v, "email.addresses", "EMAIL_ADDRESSES"), ",")
Expand Down
2 changes: 0 additions & 2 deletions bff/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ func TestLoad(t *testing.T) {
assert.Equal(t, "us-west-2", AWSRegion)
assert.Equal(t, "example-key-id", AWSAccessKeyID)
assert.Equal(t, "example-secret-key", AWSSecretAccessKey)
assert.Equal(t, "app-id", AWSAPIID)
assert.Equal(t, "https://example.com", AWSAPIGatewayEndpoint)
assert.Equal(t, []string{"example.com", "example.org"}, EmailAddresses)
assert.True(t, ProxyEnable)
Expand All @@ -70,7 +69,6 @@ func TestLoad_NoFile(t *testing.T) {
assert.Equal(t, "", AWSRegion)
assert.Equal(t, "", AWSAccessKeyID)
assert.Equal(t, "", AWSSecretAccessKey)
assert.Equal(t, "", AWSAPIID)
assert.Equal(t, "", AWSAPIGatewayEndpoint)
assert.Equal(t, []string{""}, EmailAddresses)
assert.True(t, ProxyEnable)
Expand Down
1 change: 0 additions & 1 deletion cloudflare/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export interface Env {
AWS_REGION: string
AWS_ACCESS_KEY_ID: string
AWS_SECRET_ACCESS_KEY: string
AWS_API_ID: string
AWS_API_GATEWAY_ENDPOINT: string

EMAIL_ADDRESSES: string[]
Expand Down

0 comments on commit 3118008

Please sign in to comment.