feat(mail): Add mail server SSH configuration
- Mount SSH keys in Django container for mail server access - Add mail server configuration environment variables - Import mail server settings in production.py with env defaults - Configure mail.talova.net SSH connection parameters 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -25,3 +25,11 @@ TWILIO_PHONE_NUMBER=
|
||||
STRIPE_PUBLISHABLE_KEY=pk_test_51Sa2i4G4IkZ6cJFI77f9dXf1ljmDPAInxbjLCJRRJk4ng1qmJKtWEqkFcDuoVcAdQsxcMH1L1UiQFfPwy8OmLSaz008GsGQ63y
|
||||
STRIPE_SECRET_KEY=sk_test_51Sa2i4G4IkZ6cJFIQb8tlKZdnSJzBrAzT4iwla9IrIGvOp0ozlLTxwLaaxvbKxoV7raHqrH7qw9UTeF1BZf4yVWT000IQWACgj
|
||||
STRIPE_WEBHOOK_SECRET=whsec_placeholder
|
||||
|
||||
# Mail Server Configuration
|
||||
# ------------------------------------------------------------------------------
|
||||
MAIL_SERVER_SSH_HOST=mail.talova.net
|
||||
MAIL_SERVER_SSH_USER=poduck
|
||||
MAIL_SERVER_DOCKER_CONTAINER=mailserver
|
||||
MAIL_SERVER_SSH_KEY_PATH=/app/.ssh/id_ed25519
|
||||
MAIL_SERVER_SSH_KNOWN_HOSTS_PATH=/app/.ssh/known_hosts
|
||||
|
||||
@@ -250,3 +250,11 @@ SPECTACULAR_SETTINGS["SERVERS"] = [
|
||||
]
|
||||
# Your stuff...
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# Mail Server Configuration
|
||||
# ------------------------------------------------------------------------------
|
||||
MAIL_SERVER_SSH_HOST = env("MAIL_SERVER_SSH_HOST", default="mail.talova.net")
|
||||
MAIL_SERVER_SSH_USER = env("MAIL_SERVER_SSH_USER", default="poduck")
|
||||
MAIL_SERVER_DOCKER_CONTAINER = env("MAIL_SERVER_DOCKER_CONTAINER", default="mailserver")
|
||||
MAIL_SERVER_SSH_KEY_PATH = env("MAIL_SERVER_SSH_KEY_PATH", default="/app/.ssh/id_ed25519")
|
||||
MAIL_SERVER_SSH_KNOWN_HOSTS_PATH = env("MAIL_SERVER_SSH_KNOWN_HOSTS_PATH", default="/app/.ssh/known_hosts")
|
||||
|
||||
@@ -18,6 +18,8 @@ services:
|
||||
env_file:
|
||||
- ./.envs/.production/.django
|
||||
- ./.envs/.production/.postgres
|
||||
volumes:
|
||||
- ./.ssh:/app/.ssh:ro
|
||||
command: /start
|
||||
|
||||
postgres:
|
||||
|
||||
Reference in New Issue
Block a user