Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(email): Add mailhog by default in docker-compose for local smtp server #6869

Merged
merged 14 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions config/docker_compose.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ master_enc_key = "73ad7bbbbc640c845a150f67d058b279849370cd2c1f3c67c4dd6c869213e1
password_validity_in_days = 90
two_factor_auth_expiry_in_secs = 300
totp_issuer_name = "Hyperswitch"
base_url = "http://localhost:8080"
base_url = "http://localhost:9000"
force_two_factor_auth = false
force_cookies = true
force_cookies = false

[locker]
host = ""
Expand Down Expand Up @@ -572,6 +572,7 @@ authentication_analytics_topic = "hyperswitch-authentication-events"

[analytics]
source = "sqlx"
forex_enabled = false # Enable or disable forex conversion for analytics

[analytics.clickhouse]
username = "default"
Expand Down Expand Up @@ -695,7 +696,7 @@ connector_list = "cybersource"
sender_email = "[email protected]" # Sender email
aws_region = "" # AWS region used by AWS SES
allowed_unverified_days = 1 # Number of days the api calls ( with jwt token ) can be made without verifying the email
active_email_client = "NO_EMAIL_CLIENT" # The currently active email client
active_email_client = "SMTP" # The currently active email client
recon_recipient_email = "[email protected]" # Recipient email for recon request email
prod_intent_recipient_email = "[email protected]" # Recipient email for prod intent email

Expand All @@ -707,6 +708,13 @@ sts_role_session_name = "" # An identifier for the assumed role session, used to
[theme.storage]
file_storage_backend = "file_system" # Theme storage backend to be used

# Configuration for smtp, applicable when the active email client is SMTP
[email.smtp]
host = "mailhog" # SMTP host
port = 1025 # SMTP port
timeout = 10 # Timeout for SMTP connection in seconds
connection = "plaintext" #currently plaintext and starttls are supported

[theme.email_config]
entity_name = "Hyperswitch" # Name of the entity to be showed in emails
entity_logo_url = "https://example.com/logo.svg" # Logo URL of the entity to be used in emails
Expand Down
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ services:
environment:
# format -> postgresql://DB_USER:DB_PASSWORD@HOST:PORT/DATABASE_NAME
- DATABASE_URL=postgresql://db_user:db_pass@pg:5432/hyperswitch_db

mailhog:
image: mailhog/mailhog
networks:
- router_net
ports:
- "1025:1025"
- "8025:8025"

### Application services
hyperswitch-server:
Expand Down
Loading