Skip to content

Conversation

@Tosinibikunle
Copy link

fixes #27

Bapat and others added 30 commits April 17, 2024 23:07
env vars changed to DB_NAME, DB_PASS and so on, and allow the use of
DATABASE_URL to provide the full db as well to use a different engine
than mysql. eg.: DATABASE_URL=postgres://gatekeeper_admin:somepassword@localhost:5432/gatekeeper
the cookie solution won't be a reliable thing in the end, since I noted that we will be getting lots of CORS issues, and even in browsers that this is still working, it is very likelly that it will stop on a near future. So Im using a "webhook" approach , passing back the token to the previous service on a specific url. then it's reponsability of that service to do what it needs (if it needs) on its own end.
This is the atual part of the reverse proxy view
pranavnbapat and others added 28 commits April 17, 2025 16:52
Docs: Update API.md with latest endpoint details
JWT token lifetime reduced, and added in ENV, can be overridden
new admin module added. New API added for additional user info.
badges & bulk actions; CSV export; lock down token models; blob uploa…
| `JWT_ALG` | Algorithm used for JWT signing. | `HS256` |
| `JWT_ACCESS_TOKEN_MINUTES` | Access token expiration time (in minutes). | `60` |
| `JWT_REFRESH_TOKEN_DAYS` | Refresh token expiration time (in days). | `30` |
| `FARM_CALENDAR_API` | Base API URL for the Farm Calendar service. | `http://127.0.0.1:8002/api/` |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Tosinibikunle, thanks for your effort in this PR!
Could I ask you to just add back the '*' after the FARM_CALENDAR_API and FARM_CALENDAR_POST_AUTH in this great table that you've made? Apart from that this is looking good! =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add/Update Env Vars Description in Readme

3 participants