From c3308feff68812bb040c291d5ea78265b51dd969 Mon Sep 17 00:00:00 2001 From: Vicente Ferrari Smith Date: Sun, 10 May 2026 13:59:59 +0200 Subject: [PATCH] asd --- .DS_Store | Bin 8196 -> 8196 bytes .gitignore | 2 +- cmd/party/main.go | 4 ++-- deploy/DEBIAN/postinst | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.DS_Store b/.DS_Store index 71ecf7f4f3ead67e9dcdfd3db88943fd618aeb4d..4d37c01ff0e352b8de701d593a4b31a39dfcc688 100644 GIT binary patch delta 60 zcmZp1XmOa}&&azmU^hP_?_?fB delta 33 pcmZp1XmOa}&&abeU^hP_&tx8fz|EZkf-IZ!cxEzhW|#QO4gj&z3QYh2 diff --git a/.gitignore b/.gitignore index 4c49bd7..7a6353d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -.env +.envrc diff --git a/cmd/party/main.go b/cmd/party/main.go index ce51d1e..5ecf772 100644 --- a/cmd/party/main.go +++ b/cmd/party/main.go @@ -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Ö ", "SMTP sender") flag.Float64Var(&cfg.Limiter.RPS, "limiter-rps", 2, "Rate limiter maximum requests per second") diff --git a/deploy/DEBIAN/postinst b/deploy/DEBIAN/postinst index e50f7d5..980b672 100644 --- a/deploy/DEBIAN/postinst +++ b/deploy/DEBIAN/postinst @@ -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=