Commit graph

28 commits

Author SHA1 Message Date
Ivan R. 6d25c4e8af
feat!: migrate to net/http
With the release of Go 1.22, the standard library now has
all the necessary functions that allow us to abandon Gin.

I hope this rewrite will lower the entry barrier for new developers.
As a nice bonus, the size of the program has decreased from 20 to 15.4 MB.

To solve issue #81, request logging has been improved.
Now all errors are displayed in the logs.
2024-03-25 15:52:18 +05:00
Ivan R. f0f8d4ff8d
style: group imports 2024-01-03 17:15:49 +05:00
Ivan R. 9d269ba79f
Add appearance settings 2023-11-02 21:50:36 +05:00
Ivan R. 00dcd04eb7
Add the ability to change the title 2023-11-02 21:50:36 +05:00
Ivan R. 113d5860ff
Keep settings page position after editing (#6) 2023-11-02 21:50:36 +05:00
Ivan R. 77ddb3747b
Refactor API handlers 2023-11-02 21:50:36 +05:00
Ivan R. 7e2559afcb
Add an option to control the secure parameter for cookies 2023-11-02 21:50:35 +05:00
Ivan R. 3520042abe
Move the token lifetime to a constant 2023-11-02 21:50:35 +05:00
Ivan R. 02ef29bdea
Add font awesome integration (#39) 2023-09-03 19:08:33 +05:00
Ivan R. a1b648da91
Extend access token lifetime 2023-09-03 16:09:51 +05:00
James Mills f8c888d6b0
Fix a panic bug 2023-08-28 00:44:35 +10:00
James Mills e827f0cb23
Add support for basic SSO via Trusted Header Auth 2023-08-28 00:26:16 +10:00
Ivan R. 3f41e605cb
Always underline the settings link
I've also simplified the content security policy a bit
to make it less of a hassle.
2023-07-22 21:49:47 +05:00
Ivan R. 5cb00632e6
Bring back the registration page 2023-07-22 21:49:40 +05:00
Ivan R. 37e8663ac2
Add more settings, update readme and Dockerfile 2023-07-22 21:32:11 +05:00
Ivan R. e24a3a754c
Update token cookie max age 2023-07-22 21:02:54 +05:00
Ivan R. 292df39bb8
Change path to API.
This helps you understand which paths return pages and which paths process forms.
2023-07-22 20:59:40 +05:00
Ivan R. 69eb490803
Add some headers to improve security 2023-07-22 20:49:13 +05:00
Ivan R. de76c90f3c
Rename 'backend' module to 'database' 2023-07-22 15:24:01 +05:00
Ivan R. 3c9e30375e
Move API initialization 2023-07-22 15:19:04 +05:00
Ivan R. 2c08171c7a
Start using JWT tokens
I thought this was a good idea.
Pros: fewer database calls.
Cons: there is no way to revoke the token (except for changing the secret key).

I rewrote the authorization as a middleware. Request handlers no longer need to validate the user.
2023-07-22 13:42:43 +05:00
Ivan R. 81b7e6f896
Move code for working with db into functions that process requests 2023-07-21 09:48:57 +05:00
Ivan R. c668af5001
Add the ability to edit groups 2023-04-09 11:55:08 +05:00
Ivan R. 7b34b597c8
Move the cookie creation function to the correct module 2023-04-09 11:30:28 +05:00
Ivan R. bf4c52e68b
Move pages into separate modules 2023-04-09 11:22:48 +05:00
Ivan R. 16095e0254
Interrupt the execution of functions if the user is not authorized 2023-04-09 10:41:21 +05:00
Ivan R. c92fa6e9e0
Format code with go fmt 2023-04-06 10:37:48 +05:00
Ivan R. 16cd7aa635
Initial commit 2023-04-06 10:36:11 +05:00