From d69ff1a9979c3289a201d221fd0bc647ae897ab0 Mon Sep 17 00:00:00 2001 From: Ricearoni1245 Date: Wed, 18 Feb 2026 23:14:51 -0600 Subject: [PATCH] added env for gittea --- .env | 2 ++ .gitignore | 9 +-------- contact-api/.env | 20 ++++++++++++++++++++ 3 files changed, 23 insertions(+), 8 deletions(-) create mode 100644 .env create mode 100644 contact-api/.env diff --git a/.env b/.env new file mode 100644 index 0000000..2fee769 --- /dev/null +++ b/.env @@ -0,0 +1,2 @@ +VITE_CONTACT_API_URL=/api/contact +VITE_TURNSTILE_SITE_KEY=0x4AAAAAACfQya1R13nGeuOy \ No newline at end of file diff --git a/.gitignore b/.gitignore index 24cbf5e..ece113f 100644 --- a/.gitignore +++ b/.gitignore @@ -18,14 +18,7 @@ yarn-error.log* pnpm-debug.log* # Environment files (keep examples) -.env -.env.* -!.env.example -!.env.*.example -contact-api/.env -contact-api/.env.* -!contact-api/.env.example -!contact-api/.env.*.example + # Archives and local release bundles *.tgz diff --git a/contact-api/.env b/contact-api/.env new file mode 100644 index 0000000..d7ed8f1 --- /dev/null +++ b/contact-api/.env @@ -0,0 +1,20 @@ +NODE_ENV=production +PORT=8787 +CONTACT_ALLOWED_ORIGIN=https://jodyholt.com,https://www.jodyholt.com +TURNSTILE_EXPECTED_HOSTNAME=jodyholt.com,www.jodyholt.com +TURNSTILE_SECRET_KEY=0x4AAAAAACfQyRwRzwsEMIfVtCSkjz7__Yc +TURNSTILE_EXPECTED_ACTION=contact_form +SMTP_HOST=mail.jodyholt.com +SMTP_PORT=587 +SMTP_SECURE=false +SMTP_REQUIRE_TLS=true +SMTP_USER=portfolio-smtp +SMTP_PASS=portfolio124521! +MAIL_FROM_NAME=Portfolio Contact +MAIL_FROM_ADDRESS=contact@jodyholt.com +MAIL_TO_ADDRESS=you@jodyholt.com +MAIL_SUBJECT_PREFIX=[Portfolio Contact] +RATE_LIMIT_WINDOW_MS=600000 +RATE_LIMIT_MAX=5 +HONEYPOT_FIELD=website +MIN_SUBMIT_TIME_MS=3000