Commit graph

14 commits

Author SHA1 Message Date
Cipher Vance
96f4243713 feat: enhance database reliability, add rate limiting, and improve email compatibility 2025-08-31 09:48:10 -05:00
Cipher Vance
4934e7fbec fix; bring back newsletters; nginx config broke the site 2025-08-25 20:04:29 -05:00
Cipher Vance
5855619d57 refactor: removed newsletter routes 2025-08-25 19:42:13 -05:00
Cipher Vance
45a1b2f234 feat: optimize TTFB with connection pooling, caching, and performance monitoring 2025-08-25 14:00:56 -05:00
Cipher Vance
6b066e53ef logging: removed logging 2025-08-25 13:18:13 -05:00
Cipher Vance
2309f75333 logging: Logging import time on load 2025-08-25 13:12:07 -05:00
Cipher Vance
be5e8db579 feat: optimize TTFB with lazy DB init and newsletter caching 2025-08-25 13:02:38 -05:00
Cipher Vance
6bf6d15fbe Refactor email sending for non-blocking performance and add request timing
• Dockerfile: bump Gunicorn workers to 4 for concurrent request handling
• server.py:

- Load SMTP credentials once at startup
- Wrap send_confirmation_email in a daemon Thread for “fire-and-forget” delivery
- Replace print() with structured app.logger.error() on failure
- Add before_request/after_request hooks to log per-request durations
- Use context manager for SMTP_SSL connections (auto-close)
- Simplify route JSON responses and HTTP methods declarations
- Retain existing DB logic but recommend low DB connect_timeouts
- Ensure Flask binds on 0.0.0.0 in development
These changes eliminate request blocking on email I/O, expose request latencies in logs, and improve overall concurrency.
2025-08-25 12:30:25 -05:00
Blake Ridgway
8e5cce4294 feat: changed confirmation email from txt to html 2025-04-05 20:21:29 -05:00
Blake Ridgway
6ea1525583 feat: Added newsletter secitons 2025-02-19 12:26:27 -06:00
Blake Ridgway
db5d631b0d feat(newsletter): add newsletters listing and detail pages
* Created a newsletters table and added insertion logic during newsletter send.
* Added a /newsletters route to display a list of sent newsletters.
* Implemented a /newsletter/<int:newsletter_id> route for detailed view.
* Developed new templates with navigation, including unsubscribe links.
* Enhanced front-end styling and layout for newsletter pages.
2025-02-18 20:07:30 -06:00
Blake Ridgway
b2754db793 (feat): Added email sending and remove_emails function 2025-02-11 21:44:13 -06:00
Blake Ridgway
f8f8c773cc (feat): Init concept of coming soon landing page 2025-01-05 21:03:42 -06:00
Blake Ridgway
18bcafe29b first commit 2024-12-29 20:12:21 -06:00