This commit is contained in:
Vicente Ferrari Smith 2026-05-10 13:59:59 +02:00
parent 991a646131
commit c3308feff6
4 changed files with 5 additions and 3 deletions

BIN
.DS_Store vendored

Binary file not shown.

2
.gitignore vendored
View File

@ -1 +1 @@
.env
.envrc

View File

@ -53,8 +53,8 @@ func main() {
flag.StringVar(&cfg.SMTP.Host, "smtp-host", "smtp.mailtrap.io", "SMTP host")
flag.IntVar(&cfg.SMTP.Port, "smtp-port", 25, "SMTP port")
flag.StringVar(&cfg.SMTP.Username, "smtp-username", "98cf60028d7fcb", "SMTP username")
flag.StringVar(&cfg.SMTP.Password, "smtp-password", "b9d4a35372e971", "SMTP password")
flag.StringVar(&cfg.SMTP.Username, "smtp-username", os.Getenv("SMTP_USERNAME"), "SMTP username")
flag.StringVar(&cfg.SMTP.Password, "smtp-password", os.Getenv("SMTP_PASSWORD"), "SMTP password")
flag.StringVar(&cfg.SMTP.Sender, "smtp-sender", "DPÖ <no-reply@party.at>", "SMTP sender")
flag.Float64Var(&cfg.Limiter.RPS, "limiter-rps", 2, "Rate limiter maximum requests per second")

View File

@ -11,6 +11,8 @@ if [ ! -f /etc/party/environment ]; then
mkdir -p /etc/party
cat > /etc/party/environment <<'EOF'
PARTY_DB_DSN=postgres://party:secret@localhost/party?sslmode=disable
SMTP_USERNAME=
SMTP_PASSWORD=
APNS_KEY_PATH=
APNS_KEY_ID=
APNS_TEAM_ID=