699 Commits

Author SHA1 Message Date
austinkelsay
a0e124d9ef Secure user endponts with session, dont require calling endpoints from nextauth, call models instead so we can completely secure the endpoints 2024-10-02 16:58:36 -05:00
austinkelsay
0eecb9a23b Add security headers 2024-10-01 18:00:59 -05:00
austinkelsay
a8c9ab7f68 Add cors headers to all api routes, with deployment as origin 2024-10-01 17:52:38 -05:00
austinkelsay
dc61827f86 Log headers for test 2024-10-01 17:44:02 -05:00
austinkelsay
29315b92ae Vercel analytics 2024-10-01 16:40:49 -05:00
austinkelsay
107f6b4499 Check session for decrypt, check session and admin for encrypt 2024-09-30 20:41:52 -05:00
austinkelsay
7953bb641f Remove getAllUsers endpoint, add checks to image proxy endpoint, setup local in memory cache for rate limitng in dev, added NODE_ENV variable 2024-09-30 20:35:07 -05:00
austinkelsay
735ed2b7db Update matcher 2024-09-30 19:55:56 -05:00
austinkelsay
30076181dc Update rate limiter 2024-09-30 19:51:23 -05:00
austinkelsay
e59bee30f7 Return back to basic rate limit middleware, setup server session to block user route to test 2024-09-30 19:41:26 -05:00
austinkelsay
f56c54cebb Fix path 2024-09-30 19:34:51 -05:00
austinkelsay
156a1c906f Try logging server session 2024-09-30 19:32:54 -05:00
austinkelsay
41dfcb6918 Update middleware to combine techniques for detecting external requests 2024-09-30 19:28:03 -05:00
austinkelsay
b55a3cd892 Trying x-vercel-protection-bypass to prevent external requests 2024-09-30 19:23:15 -05:00
austinkelsay
a1f47e0dd3 Check host on middleware instead 2024-09-30 19:16:35 -05:00
austinkelsay
5235e76855 update middleware to check origin for now 2024-09-30 19:09:55 -05:00
austinkelsay
5c15b93c48 Log hostname 2024-09-30 19:00:33 -05:00
austinkelsay
f87746c628 Add staging to image domains 2024-09-30 15:54:47 -05:00
austinkelsay
69e1ac9463 Recreate prod db 2024-09-30 15:50:27 -05:00
austinkelsay
39ea9c2651 Update init migration to include nip05 and lnaddress 2024-09-30 15:39:05 -05:00
austinkelsay
b8a7057be1 Fix lnaddress issue on usercreation 2024-09-30 15:29:52 -05:00
austinkelsay
5fd17eaf30 Update getUserByEmail model 2024-09-30 15:06:11 -05:00
austinkelsay
94568408db Log for middleware 2024-09-30 15:02:20 -05:00
austinkelsay
e21172188d update env variables 2024-09-30 14:58:21 -05:00
austinkelsay
9409387ca9 Fix build script 2024-09-30 14:53:47 -05:00
austinkelsay
ae3017303a Fix build script 2024-09-30 14:51:39 -05:00
austinkelsay
ad0c9e628b fix postinstall 2024-09-30 14:50:52 -05:00
austinkelsay
0a40b7c04c Preparing for deployment 2024-09-30 14:50:10 -05:00
austinkelsay
17ca8fcf59 Styling fixes, add video to promotional carousel 2024-09-30 12:59:19 -05:00
austinkelsay
3ce3a2f037 Add rate limiting / origin middleware using vercel kv and upstash, need to deploy to fully test 2024-09-29 16:40:23 -05:00
austinkelsay
f48559bb29 Styling fixes 2024-09-28 19:06:17 -05:00
austinkelsay
6efbdb1ed7 Fix non logged in subscribe page and some mobile styles 2024-09-27 17:00:20 -05:00
austinkelsay
ace772f32c Update subscribe and about page, a bunch of styling and mobile styling fixes 2024-09-27 16:30:04 -05:00
austinkelsay
bcf6c9bf9a Improvements to subscription page 2024-09-27 13:33:27 -05:00
austinkelsay
8cbb23ce3a Progress on subscribe page 2024-09-26 18:06:27 -05:00
austinkelsay
28f98dee14 Lightning address works from db for subscribed users and from the app config 2024-09-26 17:44:24 -05:00
austinkelsay
d13ddfcaa9 custom nip05 and lightning address creation, updates, and deletes fully working. Still need to add to lnurlp endpoints 2024-09-26 14:50:14 -05:00
austinkelsay
3a18a41404 subscription button optional layout for renew modal 2024-09-25 20:57:14 -05:00
austinkelsay
a5a35f90fc Subscription modal now has functioning buttons, just need to add custom nip05 and lnaddress forms 2024-09-25 18:29:58 -05:00
austinkelsay
023e9d5525 Add disabled github chart, coming soon messages in user progress, mover data tables back to where both purchases and progress is on profile and only relays are on settings 2024-09-25 17:41:57 -05:00
austinkelsay
8d2ed9a967 Feed fixes, also fixed stackernews graphql query to fetch most recent 21 items 2024-09-25 17:19:02 -05:00
austinkelsay
24afd44409 Security updates to image proxy 2024-09-25 11:22:45 -05:00
austinkelsay
ca77e2674f Fix duplicate purchases bug 2024-09-24 09:36:28 -05:00
austinkelsay
4f98ea3656 Progress on course progress flow, lso fixes for course tracking 2024-09-23 22:44:32 -05:00
austinkelsay
215a00e593 fix course and lesson tracking for paid courses, add usercourses and userlessons into session 2024-09-22 17:08:26 -05:00
austinkelsay
eb1b8675b9 move purchases into settings, placeholder for progress data table on user profile 2024-09-22 15:19:40 -05:00
austinkelsay
96a6a29936 Created userCourse model, added endpoints, added basic useTrackcourse hook 2024-09-21 16:50:59 -05:00
austinkelsay
1f8b69fb22 Style and functional improvements to user progress 2024-09-21 15:35:38 -05:00
austinkelsay
f5748b4823 Using react query with caching for github commits, added to profile 2024-09-21 14:45:45 -05:00
austinkelsay
d6264ef4ac Huge speed improvements to commit fetching 2024-09-21 13:49:29 -05:00