Commit Graph
26 Commits
Author SHA1 Message Date
Lin, Hung-Shin 387f577ae1 fix: rename setupTest 2023-11-17 11:41:33 +08:00
Lin, Hung-Shin 1f77328362 feat: add testing setup in backend 2023-11-17 10:59:47 +08:00
Lin, Hung-Shin 14043b3f12 feat: specify trust proxies 2023-11-02 12:11:15 +08:00
wancat c008f82cb0 fix: container removal, no secretKey panic 2023-11-01 23:09:39 +08:00
wancat f65b72c5b4 feat: add rate limit for authentication
* improve error handling in frontend
2023-11-01 22:11:17 +08:00
Lin, Hung-Shin c551f0c92b fix: remove default user 2023-11-01 14:19:45 +08:00
wancat b9a79eb435 feat: add get ip endpoint
* rename handler
* change rate limit
2023-10-31 00:27:06 +08:00
wancat 3b9ea9ea50 feat: setup proxy and x-forwarded-for header 2023-10-31 00:15:39 +08:00
wancat c10b05c401 feat: add global and session rate limit 2023-10-30 23:46:39 +08:00
wancat 46071d8830 fix: remove sensative logs 2023-10-14 15:52:02 +08:00
wancat cc9040038d fix: change connect db error handling 2023-10-14 15:49:13 +08:00
wancat 50bf514805 feat: separate db models from server 2023-10-14 15:34:46 +08:00
Lin, Hung-Shin 33582a4827 fix: add baseUrl in passport oauth 2023-10-11 14:46:07 +08:00
wancat 34c277c886 feat: update frontend to use cookie session
* use SessionMiddleware in socket.io server
* add back jwtStrategy for commands
2023-09-17 12:14:30 +08:00
wancat be5cd152a9 change to use session for auth
+ replace BearerAuth to cookieAuth in swagger
+ add swagger.yaml to nodemon watch list
2023-09-17 11:27:37 +08:00
wancat b55b7aa1ec feat: add register, checkUsername, update swagger 2023-09-12 23:01:49 +08:00
wancat 030dc95e24 refactor: put passport to auth folder 2023-09-11 23:38:29 +08:00
wancat bcdd04715d feat: add password login 2023-09-11 22:59:41 +08:00
wancat 22060070b9 feat: add session expiry deletion script and scheduler 2023-08-23 12:22:15 +08:00
wancat 88ed447573 fix: error handling
- Remove unnecessary try-catch block in createSession function
- Add error handling for missing session ID in socket.js
- Improve error handling in connectDB function
- Add error handling middleware for server errors
- Add default export for get function in env.js

Signed-off-by: wancat <wancat@wancat.cc>
2023-07-25 15:46:59 +08:00
wancat 2dffd2f74d Add config.js, dockerfile 2023-07-21 11:27:01 +08:00
wancat 3637d41529 Load and update quests on startup 2023-07-20 15:08:47 +08:00
wancat b2173d180d Read all quest data in the folder 2023-07-19 20:01:14 +08:00
wancat 04edfdd0dc Define routes, controllers of sessions
Work in progress, debugging
2023-07-19 16:42:09 +08:00
wancat 50443b96e0 Connect to mongodb, define schemas 2023-07-19 15:30:36 +08:00
wancat d51a75e5bc Re-organize code 2023-07-18 20:33:08 +08:00