Skip to content

Commit

Permalink
Update project configuration to use mailpit
Browse files Browse the repository at this point in the history
  • Loading branch information
pablodiegoss committed Oct 26, 2024
1 parent 2ea9c89 commit c2bab27
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .envs/.example
Original file line number Diff line number Diff line change
Expand Up @@ -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
[email protected]
JANDIG_EMAIL_PASSWORD=local_password
10 changes: 10 additions & 0 deletions etc/mailpit/README.md
Original file line number Diff line number Diff line change
@@ -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
```
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit c2bab27

Please sign in to comment.