diff --git a/smoothschedule/.envs/.local/.django b/smoothschedule/.envs/.local/.django index dda67e7..557c792 100644 --- a/smoothschedule/.envs/.local/.django +++ b/smoothschedule/.envs/.local/.django @@ -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 diff --git a/smoothschedule/config/settings/production.py b/smoothschedule/config/settings/production.py index dfc5989..a7cc5fb 100644 --- a/smoothschedule/config/settings/production.py +++ b/smoothschedule/config/settings/production.py @@ -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") diff --git a/smoothschedule/docker-compose.production.yml b/smoothschedule/docker-compose.production.yml index 0f1788d..e3b8aa6 100644 --- a/smoothschedule/docker-compose.production.yml +++ b/smoothschedule/docker-compose.production.yml @@ -18,6 +18,8 @@ services: env_file: - ./.envs/.production/.django - ./.envs/.production/.postgres + volumes: + - ./.ssh:/app/.ssh:ro command: /start postgres: