From c2bab27339762ccc09d3bb03d146621804f3f470 Mon Sep 17 00:00:00 2001 From: Pablo Silva Date: Sat, 26 Oct 2024 17:39:47 +0100 Subject: [PATCH] Update project configuration to use mailpit --- .envs/.example | 4 ++-- etc/mailpit/README.md | 10 ++++++++++ pyproject.toml | 7 +++++-- 3 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 etc/mailpit/README.md diff --git a/.envs/.example b/.envs/.example index ff7e1fe1..34c0fbc5 100644 --- a/.envs/.example +++ b/.envs/.example @@ -34,7 +34,7 @@ POSTGRES_USER=jandig POSTGRES_PASSWORD=secret # Email server variables -SMTP_SERVER=smtp.gmail.com -SMTP_PORT=587 +SMTP_SERVER=mailpit +SMTP_PORT=1025 JANDIG_EMAIL=local_jandig@jandig.com JANDIG_EMAIL_PASSWORD=local_password diff --git a/etc/mailpit/README.md b/etc/mailpit/README.md new file mode 100644 index 00000000..95f9dd19 --- /dev/null +++ b/etc/mailpit/README.md @@ -0,0 +1,10 @@ +# Mailpit configuration: +Reference: https://mailpit.axllent.org/docs/configuration/certificates/ + +The following command will generate a self-signed certificate and key (both needed for Mailpit) which is valid for 10 years: + +``` +openssl req -x509 -newkey rsa:4096 \ +-nodes -keyout mailpit_key.pem -out mailpit_cert.pem \ +-sha256 -days 3650 +``` \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 845541a9..788c974a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,8 @@ [tool.poetry] -package-mode = false +name="Jandig" +version="1.5.0" +description="AR Platform" +authors=["Check Github"] [tool.poetry.dependencies] python = "^3.10" @@ -27,7 +30,7 @@ djangorestframework = "^3.13.1" drf-nested-routers = "^0.93.4" django-htmx = "^1.18.0" -[tool.poetry.dev-dependencies] +[tool.poetry.group.dev.dependencies] playwright = "^1.41.2" pytest = "^7.2.0" pytest-xdist = "^3.0.2"