Merge pull request #378 from AppFlowy-IO/email-rate-limit
chore: increase email rate limit during test
This commit is contained in:
commit
7dce27e377
|
|
@ -40,6 +40,7 @@ jobs:
|
||||||
sed -i 's/GOTRUE_EXTERNAL_GOOGLE_ENABLED=.*/GOTRUE_EXTERNAL_GOOGLE_ENABLED=true/' .env
|
sed -i 's/GOTRUE_EXTERNAL_GOOGLE_ENABLED=.*/GOTRUE_EXTERNAL_GOOGLE_ENABLED=true/' .env
|
||||||
sed -i 's/GOTRUE_MAILER_AUTOCONFIRM=.*/GOTRUE_MAILER_AUTOCONFIRM=false/' .env
|
sed -i 's/GOTRUE_MAILER_AUTOCONFIRM=.*/GOTRUE_MAILER_AUTOCONFIRM=false/' .env
|
||||||
sed -i 's/API_EXTERNAL_URL=http:\/\/your-host/API_EXTERNAL_URL=http:\/\/localhost/' .env
|
sed -i 's/API_EXTERNAL_URL=http:\/\/your-host/API_EXTERNAL_URL=http:\/\/localhost/' .env
|
||||||
|
sed -i 's/GOTRUE_RATE_LIMIT_EMAIL_SENT=100/GOTRUE_RATE_LIMIT_EMAIL_SENT=1000/' .env
|
||||||
# expose port for tests (postgres, minio)
|
# expose port for tests (postgres, minio)
|
||||||
sed -i '38s/$/\n ports:\n - 5432:5432/' docker-compose.yml
|
sed -i '38s/$/\n ports:\n - 5432:5432/' docker-compose.yml
|
||||||
sed -i '26s/$/\n ports:\n - 9000:9000/' docker-compose.yml
|
sed -i '26s/$/\n ports:\n - 9000:9000/' docker-compose.yml
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,8 @@ GOTRUE_JWT_EXP=7200
|
||||||
# to enforce email confirmation or OAuth2 login instead.
|
# to enforce email confirmation or OAuth2 login instead.
|
||||||
# If you set this to false, you need to either set up SMTP
|
# If you set this to false, you need to either set up SMTP
|
||||||
GOTRUE_MAILER_AUTOCONFIRM=true
|
GOTRUE_MAILER_AUTOCONFIRM=true
|
||||||
|
# Number of emails that can be per minute
|
||||||
|
GOTRUE_RATE_LIMIT_EMAIL_SENT=100
|
||||||
|
|
||||||
# If you intend to use mail confirmation, you need to set the SMTP configuration below
|
# If you intend to use mail confirmation, you need to set the SMTP configuration below
|
||||||
# You would then need to set GOTRUE_MAILER_AUTOCONFIRM=false
|
# You would then need to set GOTRUE_MAILER_AUTOCONFIRM=false
|
||||||
|
|
|
||||||
2
dev.env
2
dev.env
|
|
@ -14,6 +14,8 @@ GOTRUE_JWT_EXP=7200
|
||||||
# if you have OAuth2 set up or smtp configured, you can set this to false
|
# if you have OAuth2 set up or smtp configured, you can set this to false
|
||||||
# to enforce email confirmation or OAuth2 login instead
|
# to enforce email confirmation or OAuth2 login instead
|
||||||
GOTRUE_MAILER_AUTOCONFIRM=false
|
GOTRUE_MAILER_AUTOCONFIRM=false
|
||||||
|
# Number of emails that can be per minute
|
||||||
|
GOTRUE_RATE_LIMIT_EMAIL_SENT=1000
|
||||||
|
|
||||||
# if you enable mail confirmation, you need to set the SMTP configuration below
|
# if you enable mail confirmation, you need to set the SMTP configuration below
|
||||||
GOTRUE_SMTP_HOST=smtp.gmail.com
|
GOTRUE_SMTP_HOST=smtp.gmail.com
|
||||||
|
|
|
||||||
|
|
@ -49,14 +49,15 @@ services:
|
||||||
- API_EXTERNAL_URL=${API_EXTERNAL_URL}
|
- API_EXTERNAL_URL=${API_EXTERNAL_URL}
|
||||||
- DATABASE_URL=${GOTRUE_DATABASE_URL}
|
- DATABASE_URL=${GOTRUE_DATABASE_URL}
|
||||||
- PORT=9999
|
- PORT=9999
|
||||||
- GOTRUE_SMTP_HOST=${GOTRUE_SMTP_HOST} # e.g. smtp.gmail.com
|
|
||||||
- GOTRUE_SMTP_PORT=${GOTRUE_SMTP_PORT} # e.g. 465
|
|
||||||
- GOTRUE_SMTP_USER=${GOTRUE_SMTP_USER} # email sender, e.g. noreply@appflowy.io
|
|
||||||
- GOTRUE_SMTP_PASS=${GOTRUE_SMTP_PASS} # email password
|
|
||||||
- GOTRUE_SMTP_ADMIN_EMAIL=${GOTRUE_SMTP_ADMIN_EMAIL} # email with admin privileges e.g. internal@appflowy.io
|
|
||||||
- GOTRUE_SMTP_MAX_FREQUENCY=${GOTRUE_SMTP_MAX_FREQUENCY:-1ns} # set to 1ns for running tests
|
|
||||||
- GOTRUE_MAILER_URLPATHS_CONFIRMATION=/verify
|
- GOTRUE_MAILER_URLPATHS_CONFIRMATION=/verify
|
||||||
- GOTRUE_MAILER_AUTOCONFIRM=${GOTRUE_MAILER_AUTOCONFIRM:-false} # change this to true to skip email confirmation
|
- GOTRUE_SMTP_HOST=${GOTRUE_SMTP_HOST} # e.g. smtp.gmail.com
|
||||||
|
- GOTRUE_SMTP_PORT=${GOTRUE_SMTP_PORT} # e.g. 465
|
||||||
|
- GOTRUE_SMTP_USER=${GOTRUE_SMTP_USER} # email sender, e.g. noreply@appflowy.io
|
||||||
|
- GOTRUE_SMTP_PASS=${GOTRUE_SMTP_PASS} # email password
|
||||||
|
- GOTRUE_SMTP_ADMIN_EMAIL=${GOTRUE_SMTP_ADMIN_EMAIL} # email with admin privileges e.g. internal@appflowy.io
|
||||||
|
- GOTRUE_SMTP_MAX_FREQUENCY=${GOTRUE_SMTP_MAX_FREQUENCY:-1ns} # set to 1ns for running tests
|
||||||
|
- GOTRUE_RATE_LIMIT_EMAIL_SENT=${GOTRUE_RATE_LIMIT_EMAIL_SENT:-100} # number of email sendable per minute
|
||||||
|
- GOTRUE_MAILER_AUTOCONFIRM=${GOTRUE_MAILER_AUTOCONFIRM:-false} # change this to true to skip email confirmation
|
||||||
# Google OAuth config
|
# Google OAuth config
|
||||||
- GOTRUE_EXTERNAL_GOOGLE_ENABLED=${GOTRUE_EXTERNAL_GOOGLE_ENABLED}
|
- GOTRUE_EXTERNAL_GOOGLE_ENABLED=${GOTRUE_EXTERNAL_GOOGLE_ENABLED}
|
||||||
- GOTRUE_EXTERNAL_GOOGLE_CLIENT_ID=${GOTRUE_EXTERNAL_GOOGLE_CLIENT_ID}
|
- GOTRUE_EXTERNAL_GOOGLE_CLIENT_ID=${GOTRUE_EXTERNAL_GOOGLE_CLIENT_ID}
|
||||||
|
|
|
||||||
|
|
@ -66,9 +66,10 @@ services:
|
||||||
- GOTRUE_MAILER_URLPATHS_INVITE=/gotrue/verify
|
- GOTRUE_MAILER_URLPATHS_INVITE=/gotrue/verify
|
||||||
- GOTRUE_MAILER_URLPATHS_RECOVERY=/gotrue/verify
|
- GOTRUE_MAILER_URLPATHS_RECOVERY=/gotrue/verify
|
||||||
- GOTRUE_MAILER_URLPATHS_EMAIL_CHANGE=/gotrue/verify
|
- GOTRUE_MAILER_URLPATHS_EMAIL_CHANGE=/gotrue/verify
|
||||||
- GOTRUE_SMTP_ADMIN_EMAIL=${GOTRUE_SMTP_ADMIN_EMAIL} # email with admin privileges e.g. internal@appflowy.io
|
- GOTRUE_SMTP_ADMIN_EMAIL=${GOTRUE_SMTP_ADMIN_EMAIL} # email with admin privileges e.g. internal@appflowy.io
|
||||||
- GOTRUE_SMTP_MAX_FREQUENCY=${GOTRUE_SMTP_MAX_FREQUENCY:-1ns} # set to 1ns for running tests
|
- GOTRUE_SMTP_MAX_FREQUENCY=${GOTRUE_SMTP_MAX_FREQUENCY:-1ns} # set to 1ns for running tests
|
||||||
- GOTRUE_MAILER_AUTOCONFIRM=${GOTRUE_MAILER_AUTOCONFIRM:-false} # change this to true to skip email confirmation
|
- GOTRUE_RATE_LIMIT_EMAIL_SENT=${GOTRUE_RATE_LIMIT_EMAIL_SENT:-100} # number of email sendable per minute
|
||||||
|
- GOTRUE_MAILER_AUTOCONFIRM=${GOTRUE_MAILER_AUTOCONFIRM:-false} # change this to true to skip email confirmation
|
||||||
# Google OAuth config
|
# Google OAuth config
|
||||||
- GOTRUE_EXTERNAL_GOOGLE_ENABLED=${GOTRUE_EXTERNAL_GOOGLE_ENABLED}
|
- GOTRUE_EXTERNAL_GOOGLE_ENABLED=${GOTRUE_EXTERNAL_GOOGLE_ENABLED}
|
||||||
- GOTRUE_EXTERNAL_GOOGLE_CLIENT_ID=${GOTRUE_EXTERNAL_GOOGLE_CLIENT_ID}
|
- GOTRUE_EXTERNAL_GOOGLE_CLIENT_ID=${GOTRUE_EXTERNAL_GOOGLE_CLIENT_ID}
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ pub struct ClientStreamMessage {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Hash, PartialEq, Eq)]
|
#[derive(Debug, Hash, PartialEq, Eq)]
|
||||||
pub(crate) struct Editing {
|
pub struct Editing {
|
||||||
pub object_id: String,
|
pub object_id: String,
|
||||||
pub origin: CollabOrigin,
|
pub origin: CollabOrigin,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue