hide .env credentials
Some checks failed
CI / Check Style (push) Has been cancelled
CI / Run Clippy (push) Has been cancelled
CI / Run Tests (push) Has been cancelled

This commit is contained in:
Priec
2026-06-19 00:35:48 +02:00
parent f3daa27ce7
commit 35e2b6edc9
2 changed files with 15 additions and 8 deletions

2
.gitignore vendored
View File

@@ -19,6 +19,8 @@ target/
*.sqlite-* *.sqlite-*
.env .env
.env.production .env.production
.envrc
.direnv/
uploads/ uploads/
*.report.html *.report.html
favicon_io.zip favicon_io.zip

View File

@@ -45,19 +45,24 @@ workers:
# Mailer Configuration. # Mailer Configuration.
mailer: mailer:
# SMTP mailer configuration. # SMTP mailer configuration. Defaults target a local catcher (MailHog/Mailpit
# on localhost:1025); set the SMTP_* env vars to point at a real server. The
# auth block is only emitted when SMTP_PASSWORD is provided, so the secret is
# never stored here — pass it in at launch (e.g. from `pass`).
smtp: smtp:
# Enable/Disable smtp mailer. # Enable/Disable smtp mailer.
enable: true enable: {{ get_env(name="SMTP_ENABLE", default="true") }}
# SMTP server host. e.x localhost, smtp.gmail.com # SMTP server host. e.x localhost, smtp.gmail.com
host: localhost host: "{{ get_env(name="SMTP_HOST", default="localhost") }}"
# SMTP server port # SMTP server port
port: 1025 port: {{ get_env(name="SMTP_PORT", default="1025") }}
# Use secure connection (SSL/TLS). # Use secure connection (SSL/TLS).
secure: false secure: {{ get_env(name="SMTP_SECURE", default="false") }}
# auth: {% if get_env(name="SMTP_PASSWORD", default="") != "" %}
# user: auth:
# password: user: "{{ get_env(name="SMTP_USER", default="") }}"
password: "{{ get_env(name="SMTP_PASSWORD", default="") }}"
{% endif %}
# Override the SMTP hello name (default is the machine's hostname) # Override the SMTP hello name (default is the machine's hostname)
# hello_name: # hello_name: