Skip to content

Commit 100a178

Browse files
jagan-jayaprajwalnl0JeevaRamu0104
authored
feat(email): Add mailhog by default in docker-compose for local smtp server (#6869)
Co-authored-by: prajwalnl0 <[email protected]> Co-authored-by: Jeeva Ramachandran <[email protected]>
1 parent 0eca55f commit 100a178

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

Diff for: config/docker_compose.toml

+11-3
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ master_enc_key = "73ad7bbbbc640c845a150f67d058b279849370cd2c1f3c67c4dd6c869213e1
5555
password_validity_in_days = 90
5656
two_factor_auth_expiry_in_secs = 300
5757
totp_issuer_name = "Hyperswitch"
58-
base_url = "http://localhost:8080"
58+
base_url = "http://localhost:9000"
5959
force_two_factor_auth = false
60-
force_cookies = true
60+
force_cookies = false
6161

6262
[locker]
6363
host = ""
@@ -572,6 +572,7 @@ authentication_analytics_topic = "hyperswitch-authentication-events"
572572

573573
[analytics]
574574
source = "sqlx"
575+
forex_enabled = false # Enable or disable forex conversion for analytics
575576

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

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

711+
# Configuration for smtp, applicable when the active email client is SMTP
712+
[email.smtp]
713+
host = "mailhog" # SMTP host
714+
port = 1025 # SMTP port
715+
timeout = 10 # Timeout for SMTP connection in seconds
716+
connection = "plaintext" #currently plaintext and starttls are supported
717+
710718
[theme.email_config]
711719
entity_name = "Hyperswitch" # Name of the entity to be showed in emails
712720
entity_logo_url = "https://example.com/logo.svg" # Logo URL of the entity to be used in emails

Diff for: docker-compose.yml

+8
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ services:
5151
environment:
5252
# format -> postgresql://DB_USER:DB_PASSWORD@HOST:PORT/DATABASE_NAME
5353
- DATABASE_URL=postgresql://db_user:db_pass@pg:5432/hyperswitch_db
54+
55+
mailhog:
56+
image: mailhog/mailhog
57+
networks:
58+
- router_net
59+
ports:
60+
- "1025:1025"
61+
- "8025:8025"
5462

5563
### Application services
5664
hyperswitch-server:

0 commit comments

Comments
 (0)